Versions in this module Expand all Collapse all v0 v0.1.2 Apr 28, 2021 v0.1.1 Apr 28, 2021 Changes in this version + const ISO8601 + const ISO8601B + const RFC1123 + const RFC1123W + const RFC3339 + const RFC822 + const RFC822W + const RFC850 + var DaySuffixes = []string + func DaysIn(year int, month time.Month) int + func IsLeap(year int) bool + type Date struct + func AutoParse(value string) (Date, error) + func DatesInRange(d1, d2 Date) ([]Date, error) + func Max() Date + func Min() Date + func MustAutoParse(value string) Date + func MustParse(layout, value string) Date + func MustParseISO(value string) Date + func New(year int, month time.Month, day int) Date + func NewAt(t time.Time) Date + func NewOfDays(p PeriodOfDays) Date + func Parse(layout, value string) (Date, error) + func ParseISO(value string) (Date, error) + func Today() Date + func TodayIn(loc *time.Location) Date + func TodayUTC() Date + func (d Date) Add(days PeriodOfDays) Date + func (d Date) AddDate(years, months, days int) Date + func (d Date) AddPeriod(delta period.Period) Date + func (d Date) After(u Date) bool + func (d Date) Before(u Date) bool + func (d Date) Date() (year int, month time.Month, day int) + func (d Date) Day() int + func (d Date) DaysSinceEpoch() (days PeriodOfDays) + func (d Date) Equal(u Date) bool + func (d Date) Format(layout string) string + func (d Date) FormatISO(yearDigits int) string + func (d Date) FormatWithSuffixes(layout string, suffixes []string) string + func (d Date) ISOWeek() (year, week int) + func (d Date) In(loc *time.Location) time.Time + func (d Date) IsZero() bool + func (d Date) LastDayOfMonth() int + func (d Date) Local() time.Time + func (d Date) Max(u Date) Date + func (d Date) Min(u Date) Date + func (d Date) Month() time.Month + func (d Date) String() string + func (d Date) Sub(u Date) (days PeriodOfDays) + func (d Date) UTC() time.Time + func (d Date) Weekday() time.Weekday + func (d Date) Year() int + func (d Date) YearDay() int + type PeriodOfDays int32 + const ZeroDays + func (p PeriodOfDays) Date() Date