Documentation
¶
Index ¶
Constants ¶
View Source
const (
UNKNOWN = "UNKNOWN"
)
Variables ¶
View Source
var ( MO = Weekday{/* contains filtered or unexported fields */} TU = Weekday{/* contains filtered or unexported fields */} WE = Weekday{/* contains filtered or unexported fields */} TH = Weekday{/* contains filtered or unexported fields */} FR = Weekday{/* contains filtered or unexported fields */} SA = Weekday{/* contains filtered or unexported fields */} SU = Weekday{/* contains filtered or unexported fields */} )
Weekdays
Functions ¶
Types ¶
type DateFormatter ¶
type DateFormatter interface { Format(year int, month time.Month, day int) string MonthName(month time.Month) string Nth(i int) string WeekdayName(wDay Weekday) string }
func NewDateFormatterSimple ¶
func NewDateFormatterSimple(loc *i18n.Localizer) DateFormatter
type ROption ¶
type ROption struct { Freq Frequency Dtstart time.Time Interval int Wkst Weekday Count int Until time.Time Bysetpos []int Bymonth []int Bymonthday []int Byyearday []int Byweekno []int Byweekday []Weekday Byhour []int Byminute []int Bysecond []int Byeaster []int }
func FromROption ¶
func FromROption(o *rrule.ROption) *ROption
FromRRule covert teambition/rrule-go to ROption
func StrToROption ¶
StrToROption parse rrule string to ROption
type Weekday ¶
type Weekday struct {
// contains filtered or unexported fields
}
Weekday specifying the nth weekday. Field N could be positive or negative (like MO(+2) or MO(-3). Not specifying N (0) is the same as specifying +1.
func FromWeekdaySlice ¶
func FromWeekdaySlice(weekdays []rrule.Weekday) []Weekday
FromWeekdaySlice covert from teambition/rrule-go slice Weekday slice
func NewWeekday ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.