Redmage/api/utils/utils.go

8 lines
147 B
Go
Raw Normal View History

package utils
import "time"
func StartOfDay(t time.Time) time.Time {
return time.Date(t.Year(), t.Month(), t.Day(), 0, 0, 0, 0, t.Location())
}