(loc *time.Location)
| 15 | const MaxTemplateAutostopRequirementWeeks = 16 |
| 16 | |
| 17 | func TemplateAutostopRequirementEpoch(loc *time.Location) time.Time { |
| 18 | // The "first week" starts on January 2nd, 2023, which is the first Monday |
| 19 | // of 2023. All other weeks are counted using modulo arithmetic from that |
| 20 | // date. |
| 21 | return time.Date(2023, time.January, 2, 0, 0, 0, 0, loc) |
| 22 | } |
| 23 | |
| 24 | // DaysOfWeek intentionally starts on Monday as opposed to Sunday so the weekend |
| 25 | // days are contiguous in the bitmap. This matters greatly when doing restarts |
no outgoing calls
no test coverage detected