Modulesยง
- test_
utils - A separate mod so that
use types::*oruse interval::*does notuse IntervalTestExtby accident.
Structsยง
- Interval
- Every interval can be represented by a
Interval. - Interval
CmpValue ๐ - https://github.com/postgres/postgres/blob/REL_15_2/src/backend/utils/adt/timestamp.c#L2384
- Interval
Display - Wrapper so that
Debug for IntervalDisplaywould use the concise format ofDisplay for Interval.
Enumsยง
- Date
Time Field - Interval
Parse Error - Error type for parsing an
Interval. - Time
StrToken ๐
Constantsยง
- USECS_
PER_ ๐DAY - USECS_
PER_ ๐MONTH - USECS_
PER_ ๐SEC
Functionsยง
- convert_
digit ๐ - convert_
hms ๐ - convert
hour_min_secformat 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 ๐