Documentation ¶
Index ¶
Constants ¶
View Source
const ( Nanosecond Duration = Duration(time.Nanosecond) Microsecond = Duration(time.Microsecond) Millisecond = Duration(time.Millisecond) Second = Duration(time.Second) Minute = Duration(time.Minute) Hour = Duration(time.Hour) Day = Duration(time.Hour) * 24 Week = Day * 7 Month = Day * 31 Year = Day * 365 Decade = Year * 10 Century = Decade * 10 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Duration ¶ added in v0.7.10
func ParseDuration ¶ added in v0.7.9
Extend version of ParseDuration. Source code is almost identical to Supports day (d) and week (w) units as well as general month (M) and year (Y) durations. Month is defined as 31 days and a year is 365 days.
func (*Duration) UnmarshalJSON ¶ added in v0.7.10
func (*Duration) UnmarshalYAML ¶ added in v0.7.10
Click to show internal directories.
Click to hide internal directories.