Skip to main content

Module time

Module time 

Source
Expand description

Time parsing and formatting utilities for CEL timestamps and durations.

This module provides functions to parse and format timestamps and durations according to CEL specification requirements.

Enums§

TimestampComponent
Timestamp accessor component.
TimezoneInfo
Represents either an IANA timezone or a fixed offset.

Functions§

format_duration
Format a duration as a string.
format_timestamp
Format a timestamp as an RFC 3339 string with nanosecond precision.
parse_duration
Parse a CEL duration string.
parse_timestamp
Parse an RFC 3339 timestamp string.
parse_timezone
Parse a timezone string.