jupiter
jupiter copied to clipboard
[BUG] xtime包下time.go的 EndOfDay EndOfHour 方法
Issue Description
Type: bug report
Describe what happened
Describe what you expected to happen
func (t *Time) EndOfDay() *Time {
y, m, d := t.Date()
return &Time{time.Date(y, m, d, 23, 23, 59, int(time.Second-time.Nanosecond), t.Location())}
}
第二个23应该为59吧。
func (t *Time) EndOfHour() *Time {
y, m, d := t.Date()
return &Time{time.Date(y, m, d, t.Hour(), 23, 59, int(time.Second-time.Nanosecond), t.Location())}
}
第一个23应该为59吧。