formatStartTimeHour 将time格式化为小时整
(t time.Time, location *time.Location)
| 29 | |
| 30 | // formatStartTimeHour 将time格式化为小时整 |
| 31 | func formatStartTimeHour(t time.Time, location *time.Location) time.Time { |
| 32 | return time.Date(t.Year(), t.Month(), t.Day(), t.Hour(), 0, 0, 0, location) |
| 33 | } |
| 34 | |
| 35 | // formatStartTimeDay 将time格式化为天整 |
| 36 | func formatStartTimeDay(t time.Time, location *time.Location) time.Time { |
no outgoing calls
no test coverage detected