Skip to main content

parse_timestamp

Function parse_timestamp 

Source
pub fn parse_timestamp(s: &str) -> Option<DateTime<FixedOffset>>
Expand description

Parse a CEL timestamp("…") string (RFC3339).

Returns None on any parse error. Used by codegen for timestamp(this.field) where the argument isn’t a compile-time literal — the literal-arg path bakes the result into a cached OnceLock<DateTime> at codegen time and doesn’t call this.