Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Day ¶
type Day string
Day represents a day of the week - MON through SUN
func (Day) MatchesDow ¶
MatchesDow tests if the day-of-week of the supplied time falls on this day
func (*Day) UnmarshalJSON ¶
UnmarshalJSON satisifies the JSON unmarshaler interface in order to interpret "MON" (or "mon" or "Mon") to "SUN" json
type Time ¶
type Time struct {
// contains filtered or unexported fields
}
Time represents a time in HH:MM:SS format
func TimeFromTime ¶
TimeFromTime mints a new Time object (representing JUST the time component) from a golang time (representing a point in time)
func (*Time) UnmarshalJSON ¶
UnmarshalJSON satisifies the JSON unmarshaler interface in order to interpret "HH:MM" or "HH:MM:SS" json
Click to show internal directories.
Click to hide internal directories.