Versions in this module Expand all Collapse all v0 v0.0.5 Oct 10, 2022 Changes in this version + var TimeFormats = []string + var WeekStartDay = time.Sunday + func BeginningOfDay() time.Time + func BeginningOfHour() time.Time + func BeginningOfMinute() time.Time + func BeginningOfMonth() time.Time + func BeginningOfQuarter() time.Time + func BeginningOfWeek() time.Time + func BeginningOfYear() time.Time + func Between(time1, time2 string) bool + func EndOfDay() time.Time + func EndOfHour() time.Time + func EndOfMinute() time.Time + func EndOfMonth() time.Time + func EndOfQuarter() time.Time + func EndOfSunday() time.Time + func EndOfWeek() time.Time + func EndOfYear() time.Time + func Monday(strs ...string) time.Time + func MustParse(strs ...string) time.Time + func MustParseInLocation(loc *time.Location, strs ...string) time.Time + func Parse(strs ...string) (time.Time, error) + func ParseInLocation(loc *time.Location, strs ...string) (time.Time, error) + func Quarter() uint + func Sunday(strs ...string) time.Time + type Config struct + TimeFormats []string + TimeLocation *time.Location + WeekStartDay time.Weekday + var DefaultConfig *Config + func (config *Config) MustParse(strs ...string) time.Time + func (config *Config) Parse(strs ...string) (time.Time, error) + func (config *Config) With(t time.Time) *When + type When struct + func New(t time.Time) *When + func With(t time.Time) *When + func (now *When) BeginningOfDay() time.Time + func (now *When) BeginningOfHalf() time.Time + func (now *When) BeginningOfHour() time.Time + func (now *When) BeginningOfMinute() time.Time + func (now *When) BeginningOfMonth() time.Time + func (now *When) BeginningOfQuarter() time.Time + func (now *When) BeginningOfWeek() time.Time + func (now *When) BeginningOfYear() time.Time + func (now *When) Between(begin, end string) bool + func (now *When) EndOfDay() time.Time + func (now *When) EndOfHalf() time.Time + func (now *When) EndOfHour() time.Time + func (now *When) EndOfMinute() time.Time + func (now *When) EndOfMonth() time.Time + func (now *When) EndOfQuarter() time.Time + func (now *When) EndOfSunday() time.Time + func (now *When) EndOfWeek() time.Time + func (now *When) EndOfYear() time.Time + func (now *When) Monday(strs ...string) time.Time + func (now *When) MustParse(strs ...string) (t time.Time) + func (now *When) Parse(strs ...string) (t time.Time, err error) + func (now *When) Quarter() uint + func (now *When) Sunday(strs ...string) time.Time