Expand description
Intervals and durations, shared by market summary --every and
watchlists, so both read 30s the same way and have the same defaults
(#47, Q7).
Constants§
- DEFAULT_
DURATION_ SECS - Default total duration of a repeat (1 hour).
- DEFAULT_
INTERVAL_ SECS - Default interval between runs (60 seconds).
- UNTIL_
CANCELLED - Duration words that mean “until the user stops it” (#96).
Functions§
- format_
duration - The shortest text that
parse_durationreads back assecs. - is_
until_ cancelled foreverorinf, in any case.- parse_
duration - Parses
30s,5m,1h,2dor a bare number of seconds into whole seconds. Zero and negative values are errors.