Documentation
¶
Index ¶
- Constants
- func DateOf(t time.Time) time.Time
- func DayEnd(t time.Time) time.Time
- func DayStart(t time.Time) time.Time
- func LocalDate(year, month, day int) time.Time
- func ToJSON(t time.Time) string
- func Today() time.Time
- func UTCDate(year, month, day int) time.Time
- func Yesterday() time.Time
- func YesterdayNow() time.Time
- type Duration
Constants ¶
View Source
const ( // Day is the duration of one day. Day = 24 * time.Hour // Week is the duration of one week. Week = 7 * Day )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Duration ¶
Duration is a wrapper for time.Duration with JSON support.
func (Duration) MarshalJSON ¶
func (*Duration) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.