mirror of
https://github.com/anyproto/anytype-heart.git
synced 2025-06-08 05:47:07 +09:00
10 lines
173 B
Go
10 lines
173 B
Go
package time
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
func CutToDay(t time.Time) time.Time {
|
|
roundTime := time.Date(t.Year(), t.Month(), t.Day(), 0, 0, 0, 0, t.Location())
|
|
return roundTime
|
|
}
|