Documentation ¶
Index ¶
- Variables
- func EndOfCalendar(now time.Time) time.Time
- func EndOfDay(now time.Time) time.Time
- func EndOfHour(now time.Time) time.Time
- func EndOfMonth(now time.Time) time.Time
- func EndOfWeek(now time.Time) time.Time
- func EndOfYear(now time.Time) time.Time
- func IsDateSpecified(what string) bool
- func IsSameDay(a, b time.Time) bool
- func ParseEnd(s string) (time.Time, error)
- func ParseEndInLocation(s string, loc *time.Location) (time.Time, error)
- func ParseStart(s string) (time.Time, error)
- func ParseStartInLocation(s string, loc *time.Location) (time.Time, error)
- func ResolveTime(what string, t time.Time) (time.Time, error)
- func StartOfCalendar(now time.Time) time.Time
- func StartOfDay(now time.Time) time.Time
- func StartOfHour(now time.Time) time.Time
- func StartOfMonth(now time.Time) time.Time
- func StartOfWeek(now time.Time) time.Time
- func StartOfYear(now time.Time) time.Time
Constants ¶
This section is empty.
Variables ¶
View Source
var TimeFuncs = map[string]func(time.Time) time.Time{ "startOfHour": StartOfHour, "endOfHour": EndOfHour, "startOfDay": StartOfDay, "endOfDay": EndOfDay, "startOfWeek": StartOfWeek, "endOfWeek": EndOfWeek, "startOfMonth": StartOfMonth, "endOfMonth": EndOfMonth, "startOfCalendar": StartOfCalendar, "endOfCalendar": EndOfCalendar, "startOfYear": StartOfYear, "endOfYear": EndOfYear, }
Functions ¶
func IsDateSpecified ¶
func ParseStartInLocation ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.