Skip to main content

Module time

Module time 

Source
Expand description

Time-range parsing and period bucketing for analytics queries.

Parses the --since / --until flag forms (relative durations like 24h, calendar dates, and RFC-3339 timestamps) into a UTC range via parse_time_range, and snaps timestamps to hour/day/week/month boundaries with truncate_to_period for trend grouping.

Functionsยง

format_duration_ms
format_period_label
format_timestamp
parse_duration
parse_since
parse_time_range
parse_until
truncate_to_period