Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Recurrence ¶
type Recurrence struct { Interval RecurrenceInterval `json:"period"` // Anchor can be an arbitrary anchor time for the recurrence. // It does not have to be the last or the next time. Anchor time.Time `json:"anchor"` }
func (Recurrence) NextAfter ¶
NextAfter returns the next time after t that the recurrence should occur. If at t the recurrence should occur, it will return t.
func (Recurrence) PrevBefore ¶
PrevBefore returns the previous time before t that the recurrence should occur.
type RecurrenceInterval ¶
type RecurrenceInterval string
const ( RecurrencePeriodDaily RecurrenceInterval = "DAY" RecurrencePeriodWeek RecurrenceInterval = "WEEK" RecurrencePeriodMonth RecurrenceInterval = "MONTH" RecurrencePeriodYear RecurrenceInterval = "YEAR" )
func (RecurrenceInterval) IsValid ¶
func (rp RecurrenceInterval) IsValid() bool
func (RecurrenceInterval) Values ¶
func (RecurrenceInterval) Values() (kinds []string)
Click to show internal directories.
Click to hide internal directories.