Documentation
¶
Overview ¶
Package dateseq creates a sequence series of daily dates
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Sequence ¶
type Sequence struct {
// contains filtered or unexported fields
}
Sequence represents a slice of dates.
func (Sequence) Asc ¶ added in v0.1.2
Asc sorts a slice of dates in ascending order, i.e. 2006-01-02 comes before 2006-01-03
func (Sequence) Desc ¶ added in v0.1.2
Desc sorts a slice of dates in descending order, i.e. 2006-01-01 comes after 2006-01-02
func (Sequence) Duration ¶
Duration creates a date sequence with the specified length of days ending now. Calls to Duration will reset the sequence slice to nil before generating an new sequence.
func (Sequence) ExclWeekends ¶
ExclWeekends excludes Saturday and Sunday from the sequence. This is the default setting for weekends.
func (Sequence) InclWeekends ¶
InclWeekends includes Saturday and Sunday into the sequence.
Click to show internal directories.
Click to hide internal directories.