Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FmtShortDuration ¶
func Parse ¶
Parse reads a duration written the way the agent prints one.
The standard library stops at the hour, because a day is not a fixed number of hours everywhere. The agent prints days anyway, in every duration long enough to have one, so it has to read them back: a configuration naming "1d" is naming what "1d" is shown as, and refusing it would be refusing our own output. A day is taken as 24 hours.
Types ¶
Click to show internal directories.
Click to hide internal directories.