Versions in this module Expand all Collapse all v0 v0.7.2 Mar 20, 2024 v0.7.1 Mar 20, 2024 Changes in this version type RawDate + func (a RawDate) Equal(b RawDate) bool v0.7.0 Mar 20, 2024 Changes in this version + const MSSQLDateFmt + const MSSQLZeroDate + var SQLDateFormat = "2006-01-02" + var SQLTimeZone = time.UTC + var SQLValueTime = false + var SQLZeroValue = "0000-01-01" type RawDate + func Today() RawDate + func (a RawDate) After(b RawDate) bool + func (a RawDate) Before(b RawDate) bool + func (d RawDate) ValueTime() (driver.Value, error) v0.6.0 Mar 14, 2024 Changes in this version + var TimeZoneDB = time.Local type RawDate + func (d *RawDate) Scan(src any) error + func (d *RawDate) UnmarshalJSON(data []byte) error + func (d *RawDate) UnmarshalText(data []byte) error + func (d RawDate) GoString() string + func (d RawDate) MarshalJSON() ([]byte, error) + func (d RawDate) MarshalText() ([]byte, error) + func (d RawDate) Value() (driver.Value, error) v0.5.0 Mar 14, 2024 Changes in this version type RawDate + func (r RawDate) MonthEnd() RawDate + func (r RawDate) MonthStart() RawDate + func (r RawDate) NextWeekday(weekday time.Weekday, orToday bool) RawDate + func (r RawDate) PreviousWeekday(weekday time.Weekday, orToday bool) RawDate v0.4.2 Mar 4, 2024 Changes in this version type RawDate + func Now() RawDate v0.4.1 Feb 21, 2024 v0.4.0 Feb 21, 2024 Changes in this version type RawDate + Day0 int8 + Month0 int8 + Year0 int + func (r RawDate) Weekday() time.Weekday v0.3.3 Feb 20, 2024 Changes in this version type RawDate + func (r RawDate) AddDate(years, months, days int) RawDate v0.3.2 Feb 20, 2024 Changes in this version type RawDate + func (r RawDate) IsZero() bool v0.3.1 Feb 20, 2024 v0.3.0 Feb 20, 2024 Changes in this version + const ISODate + var Zero = RawDate + func Compare(a, b RawDate) int + type RawDate struct + Day int8 + Month int8 + Year int + func FromTime(t time.Time) RawDate + func MustNew(y, m, d int) RawDate + func New(y, m, d int) (RawDate, error) + func Parse(layout, s string) (RawDate, error) + func (r RawDate) Compare(a RawDate) int + func (r RawDate) Format(format string) string + func (r RawDate) IsValid() bool + func (r RawDate) String() string + func (r RawDate) Time(location *time.Location) time.Time