Versions in this module Expand all Collapse all v1 v1.0.0 Jun 30, 2016 Changes in this version + const AmericanCommon + const AmericanShort + const RFC3339 + var ErrOutOfRange = errors.New("The given date is out of range") + func UnixInRange(seconds int64) bool + type Date uint16 + func NewFromDate(year int, month time.Month, day int) (Date, error) + func NewFromTime(t time.Time) (Date, error) + func NewFromUnix(seconds int64) (d Date, err error) + func Parse(layout, value string) (d Date, err error) + func Today() Date + func TodayUTC() Date + func (d *Date) Scan(value interface{}) error + func (d *Date) UnmarshalJSON(data []byte) (err error) + func (d Date) AddDate(years int, months int, days int) Date + func (d Date) After(date Date) bool + func (d Date) AfterTime(t time.Time) bool + func (d Date) Before(date Date) bool + func (d Date) BeforeTime(t time.Time) bool + func (d Date) Date() (year int, month time.Month, day int) + func (d Date) Equals(date Date) bool + func (d Date) EqualsTime(t time.Time) bool + func (d Date) Format(layout string) string + func (d Date) In(loc *time.Location) time.Time + func (d Date) Local() time.Time + func (d Date) MarshalJSON() ([]byte, error) + func (d Date) String() string + func (d Date) UTC() time.Time + func (d Date) UTCTime(hour int, min int, sec int, nsec int) time.Time + func (d Date) Unix() int64 + func (d Date) UnixNano() int64 + func (d Date) Value() (driver.Value, error) + func (d Date) Weekday() time.Weekday