Versions in this module Expand all Collapse all v1 v1.0.1 Mar 16, 2022 v1.0.0 Aug 9, 2020 Changes in this version + const Day + const DurationNil + const Hour + const Minute + const Month + const NoUnit + const Week + const Year + func EndOfMonth(year, month int) int + func EndOfWeek(e time.Weekday) int + func IsBissextil(year int) bool + func Now() (d Date, c Clock) + func NowIn(dd Duration) (d Date, c Clock) + type Clock uint + const ClockBegin + const ClockEnd + const ClockNil + func ClockNow() Clock + func ClockNowIn(dd Duration) Clock + func NewClock(hour, min uint) Clock + func ParseClock(in string) (out Clock, ok bool) + func (c Clock) Add(d Duration) (r Clock, ok bool) + func (c Clock) Clock() (hour, min uint) + func (c Clock) Format(sep string) string + func (c Clock) IsNil() bool + func (c Clock) String() string + func (c Clock) Sub(d Duration) (Clock, bool) + func (c1 Clock) Compare(c2 Clock) int + func (c1 Clock) Diff(c2 Clock) Duration + type Date int + const DateNil + func DateNow() Date + func DateNowIn(dd Duration) Date + func NewDate(year, month, day int) Date + func ParseDate(in string) (out Date, ok bool) + func (d Date) Date() (year, month, day int) + func (d Date) Eom() Date + func (d Date) Eow() Date + func (d Date) Format(seps ...string) string + func (d Date) IsNil() bool + func (d Date) String() string + func (d1 Date) Compare(d2 Date) int + func (d1 Date) Diff(d2 Date) Duration + func (t Date) Add(d Duration) (r Date, ok bool) + func (t Date) Sub(d Duration) (r Date, ok bool) + type Duration int + func NewDuration(v int, u Unit) Duration + func ParseDuration(in string) (out Duration, ok bool) + func (d Duration) Inv() Duration + func (d Duration) IsClock() bool + func (d Duration) IsDate() bool + func (d Duration) IsNil() bool + func (d Duration) String() string + func (d Duration) Unit() Unit + func (d Duration) Value() int + type Unit int