Versions in this module Expand all Collapse all v0 v0.0.4 Nov 6, 2023 v0.0.3 Oct 19, 2023 Changes in this version type Date + func (d Date) Format(s string) string type DateTime + func (d DateTime) Format(s string) string v0.0.2 Oct 19, 2023 Changes in this version + type Date struct + Day int + Month time.Month + Year int + func DateOf(t time.Time) Date + func ParseDate(s string) (Date, error) + func (d *Date) MarshalJSON() ([]byte, error) + func (d *Date) Scan(value interface{}) error + func (d *Date) UnmarshalJSON(data []byte) error + func (d *Date) UnmarshalText(data []byte) error + func (d Date) AddDays(n int) Date + func (d Date) After(d2 Date) bool + func (d Date) Before(d2 Date) bool + func (d Date) DaysSince(s Date) (days int) + func (d Date) In(loc *time.Location) time.Time + func (d Date) IsValid() bool + func (d Date) IsZero() bool + func (d Date) MarshalText() ([]byte, error) + func (d Date) String() string + func (d Date) Value() (driver.Value, error) + type DateTime struct + Date Date + Time Time + func DateTimeOf(t time.Time) DateTime + func ParseDateTime(s string) (DateTime, error) + func (dt *DateTime) MarshalJSON() ([]byte, error) + func (dt *DateTime) Scan(value interface{}) error + func (dt *DateTime) UnmarshalJSON(data []byte) error + func (dt *DateTime) UnmarshalText(data []byte) error + func (dt DateTime) After(dt2 DateTime) bool + func (dt DateTime) Before(dt2 DateTime) bool + func (dt DateTime) In(loc *time.Location) time.Time + func (dt DateTime) IsValid() bool + func (dt DateTime) IsZero() bool + func (dt DateTime) MarshalText() ([]byte, error) + func (dt DateTime) String() string + func (dt DateTime) Value() (driver.Value, error) + type Time struct + Hour int + Minute int + Nanosecond int + Second int + func ParseTime(s string) (Time, error) + func TimeOf(t time.Time) Time + func (t *Time) MarshalJSON() ([]byte, error) + func (t *Time) Scan(value interface{}) error + func (t *Time) UnmarshalJSON(data []byte) error + func (t *Time) UnmarshalText(data []byte) error + func (t Time) After(t2 Time) bool + func (t Time) Before(t2 Time) bool + func (t Time) IsValid() bool + func (t Time) IsZero() bool + func (t Time) MarshalText() ([]byte, error) + func (t Time) String() string + func (t Time) Value() (driver.Value, error)