t Time) Month() Month
func (t Time) Hour() int
func (t Time) Day() int // 当月多少号
func (t Time) Weekday...)
round := []time.Duration{
time.Nanosecond,
time.Microsecond,
time.Millisecond,
time.Second...,
2 * time.Second,
time.Minute,
10 * time.Minute,
time.Hour,
}
for _, d := range...")
trunc := []time.Duration{
time.Nanosecond,
time.Microsecond,
time.Millisecond,
time.Second...,
2 * time.Second,
time.Minute,
10 * time.Minute,
time.Hour,
}
for _, d := range