Documentation
¶
Overview ¶
Package dateutil provides interval handling.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // EveryMinute will chop up a timespan into 60s intervals; // https://english.stackexchange.com/q/3091/222 EveryMinute = makeIntervalFunc(padLMinute, padRMinute) Hourly = makeIntervalFunc(padLHour, padRHour) Daily = makeIntervalFunc(padLDay, padRDay) Weekly = makeIntervalFunc(padLWeek, padRWeek) Biweekly = makeIntervalFunc(padLBiweek, padRBiweek) Monthly = makeIntervalFunc(padLMonth, padRMonth) )
Functions ¶
Types ¶
type IntervalFunc ¶
IntervalFunc takes a start and endtime and returns a number of intervals. How intervals are generated is flexible.
Click to show internal directories.
Click to hide internal directories.