Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindCommits ¶
FindCommits walks the commit log from HEAD and, for each target date, finds the last commit whose Author.When is at or before that date. Dates with no prior commits are omitted from the result map.
func FormatPeriod ¶
FormatPeriod formats a date according to the interval type.
For "monthly": returns "2006-01" format. For "weekly": returns "2006-01-02" format.
func GenerateDates ¶
GenerateDates produces a slice of target dates based on interval.
For "monthly": since/until are "YYYY-MM" strings. Returns end-of-month dates (last day, 23:59:59 UTC) for each month from since to until inclusive.
For "weekly": since/until are "YYYY-MM-DD" strings. Returns end-of-day dates (23:59:59 UTC) every 7 days from since to until inclusive.
Types ¶
This section is empty.