Modulesยง
- A separate mod so that
use types::*
oruse interval::*
does notuse IntervalTestExt
by accident.
Structsยง
- Every interval can be represented by a
Interval
. - Interval
CmpValue ๐ - Wrapper so that
Debug for IntervalDisplay
would use the concise format ofDisplay for Interval
.
Enumsยง
- Error type for parsing an
Interval
. - Time
StrToken ๐
Constantsยง
- USECS_
PER_ ๐DAY - USECS_
PER_ ๐MONTH - USECS_
PER_ ๐SEC
Functionsยง
- convert_
digit ๐ - convert_
hms ๐converthour_min_sec
format e.g. c = [โ1โ, โ2โ, โ3โ], c will be convert to: [TimeStrToken::Num(1)
,TimeStrToken::TimeUnit(DateTimeField::Hour)
,TimeStrToken::Num(2)
,TimeStrToken::TimeUnit(DateTimeField::Minute)
,TimeStrToken::Second("3")
,TimeStrToken::TimeUnit(DateTimeField::Second)
] - convert_
unit ๐ - parse_
interval ๐
Type Aliasesยง
- Parse
Result ๐