Documentation
¶
Index ¶
- func DaysSince(d Date) int
- func MonthsSince(d Date) int
- func YearsSince(d Date) int
- type Date
- func (d Date) AddDays(days int) Date
- func (d Date) AddMonths(months int) Date
- func (d Date) AddYears(years int) Date
- func (d Date) EndOfDay() time.Time
- func (d Date) EndOfDayUTC() time.Time
- func (d Date) Equal(u Date) bool
- func (d Date) IsZero() bool
- func (d Date) MarshalJSON() ([]byte, error)
- func (d Date) Noon() time.Time
- func (d Date) NoonUTC() time.Time
- func (d *Date) Scan(src any) error
- func (d Date) StartOfDay() time.Time
- func (d Date) StartOfDayUTC() time.Time
- func (d Date) String() string
- func (d Date) SubDays(u Date) int
- func (d Date) SubMonths(u Date) int
- func (d Date) SubYears(u Date) int
- func (d Date) TimeAt(hour, min, sec, nsec int) time.Time
- func (d Date) TimeAtUTC(hour, min, sec, nsec int) time.Time
- func (d *Date) UnmarshalJSON(data []byte) error
- func (d Date) Value() (driver.Value, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MonthsSince ¶ added in v1.1.0
func YearsSince ¶ added in v1.1.0
Types ¶
type Date ¶
Like time.Time, but only has a date.
func (Date) EndOfDayUTC ¶
func (Date) MarshalJSON ¶
func (Date) StartOfDay ¶
func (Date) StartOfDayUTC ¶
func (*Date) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.