mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
Differentiate between right now Now() and today from midnight
This commit is contained in:
committed by
Chris Cummer
parent
27a267b123
commit
34b5b69231
@@ -72,12 +72,12 @@ func PrettyDate(dateStr string) string {
|
||||
return fmt.Sprint(newTime.Format("Jan 2, 2006"))
|
||||
}
|
||||
|
||||
func Today() time.Time {
|
||||
func Now() time.Time {
|
||||
return time.Now().Local()
|
||||
}
|
||||
|
||||
func Tomorrow() time.Time {
|
||||
return Today().AddDate(0, 0, 1)
|
||||
return Now().AddDate(0, 0, 1)
|
||||
}
|
||||
|
||||
func ToInts(slice []interface{}) []int {
|
||||
|
||||
Reference in New Issue
Block a user