Documentation
¶
Index ¶
Constants ¶
View Source
const ( Minute = 60 Hour = Minute * 60 Day = Hour * 24 Week = Day * 7 )
Variables ¶
This section is empty.
Functions ¶
func FormatDuration ¶
FormatDuration returns a textual representation of the time.Duration according to the RFC3339.
func FormatSeconds ¶
FormatSeconds returns a textual representation of the number of seconds according to the RFC3339.
func ParseDuration ¶
ParseDuration parses a formatted string to a RFC3339 duration and returns the time duration it represents.
func ParseSeconds ¶
ParseSeconds parses a formatted string to a RFC3339 duration and returns the time duration it represents.
func ToStringDuration ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.