Versions in this module Expand all Collapse all v1 v1.0.0 Jun 12, 2023 Changes in this version + const RFC3339 + type Date struct + func DateFromOrdinalDate(year, dayOfYear int) (Date, error) + func DateFromTime(t time.Time) Date + func MustDateFromOrdinalDate(year, dayOfYear int) Date + func MustNewDate(year, month, day int) Date + func NewDate(year, month, day int) (Date, error) + func ParseDate(layout, value string) (Date, error) + func Today(location *time.Location) Date + func (d *Date) Scan(value interface{}) (err error) + func (d *Date) UnmarshalJSON(data []byte) error + func (d Date) Add(years, months, days int) Date + func (d Date) AddDays(days int) Date + func (d Date) After(dd Date) bool + func (d Date) Before(dd Date) bool + func (d Date) Date() (year, month, day int) + func (d Date) Day() int + func (d Date) DayOfYear() int + func (d Date) Equal(dd Date) bool + func (d Date) Format(layout string) string + func (d Date) GoString() string + func (d Date) ISOWeek() (year, week int) + func (d Date) IsZero() bool + func (d Date) MarshalJSON() ([]byte, error) + func (d Date) Month() int + func (d Date) OrdinalDate() (year, dayOfYear int) + func (d Date) Quarter() int + func (d Date) String() string + func (d Date) Sub(dd Date) int + func (d Date) Time(location *time.Location) time.Time + func (d Date) Value() (driver.Value, error) + func (d Date) Weekday() time.Weekday + func (d Date) Year() int + type NullDate struct + Date Date + Valid bool + func (d *NullDate) Scan(value interface{}) error + func (d NullDate) Value() (driver.Value, error) + type ParseError struct + Layout string + LayoutElem string + Value string + ValueElem string + func (e *ParseError) Error() string