Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Generator ¶
type Generator struct { StartDate epochdate.Date EndDate epochdate.Date Group GROUP FirstDate epochdate.Date LastDate epochdate.Date CurrentDate epochdate.Date FirstDayOfWeek time.Weekday // contains filtered or unexported fields }
Generator object
func NewGenerator ¶
func NewGenerator(startdate epochdate.Date, enddate epochdate.Date, group GROUP) (*Generator, error)
Creates a forward generator
func NewGeneratorBackwards ¶
func NewGeneratorBackwards(startdate epochdate.Date, enddate epochdate.Date, group GROUP) (*Generator, error)
Creates a backwards generator
func (Generator) FirstFromDate ¶
returns the first day from the date, depending on the group
Click to show internal directories.
Click to hide internal directories.