Skip to main content

Module datetime

Module datetime 

Source
Expand description

Query-level datetime operators over the canonical Chrono-backed type implementation in rushdb-types.

Functionsยง

component_of
Extract one calendar component (which: 0=year .. 6=millisecond) from an epoch-millisecond timestamp.
components_to_epoch_ms
Build an epoch-millisecond timestamp from calendar components.
parse_components
Parse a {$year, $month, ...} component object into epoch milliseconds, or None when required components are missing or out of range.
parse_iso_8601
Parse an ISO-8601 datetime string into epoch milliseconds, or None when the input is not a valid datetime.
year_end
Epoch milliseconds at the start of the year after year (exclusive end).
year_start
Epoch milliseconds at the start of year (January 1st, 00:00:00.000).