Skip to main content

parse_ts

Function parse_ts 

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

Parse the timestamp flavours found in the agents’ logs.

Accepts RFC 3339 (2026-05-01T10:00:00Z, with offset or fractional seconds) and naive YYYY-MM-DD[T ]HH:MM:SS[.f] (interpreted as UTC).