formatStartTimeDay 将time格式化为天整
(t time.Time, location *time.Location)
| 34 | |
| 35 | // formatStartTimeDay 将time格式化为天整 |
| 36 | func formatStartTimeDay(t time.Time, location *time.Location) time.Time { |
| 37 | return time.Date(t.Year(), t.Month(), t.Day(), 0, 0, 0, 0, location) |
| 38 | } |
| 39 | |
| 40 | // formatStartTimeDay 将startTime向前移到周一,因为week桶里的time是每个周一才有数据 |
| 41 | func formatStartTimeToMonday(t time.Time, location *time.Location) time.Time { |
no outgoing calls
no test coverage detected