Documentation ¶
Index ¶
- Constants
- type Date
- func (dt Date) After(other Date) bool
- func (dt Date) Before(other Date) bool
- func (dt Date) Compare(other Date) int
- func (dt Date) Equal(other Date) bool
- func (dt Date) MarshalJSON() ([]byte, error)
- func (dt Date) Next(days int) Date
- func (dt Date) Prev(days int) Date
- func (dt *Date) Scan(src any) error
- func (dt Date) String() string
- func (dt Date) Sub(other Date) time.Duration
- func (dt *Date) UnmarshalBind(value string) error
- func (dt *Date) UnmarshalJSON(data []byte) error
- func (dt Date) Value() (driver.Value, error)
Constants ¶
View Source
const Day = time.Hour * time.Duration(24)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Date ¶
func (Date) MarshalJSON ¶ added in v1.0.23
func (*Date) UnmarshalBind ¶
func (*Date) UnmarshalJSON ¶ added in v1.0.23
Click to show internal directories.
Click to hide internal directories.