Skip to main content

parse_compact_utc_nanos

Function parse_compact_utc_nanos 

Source
pub fn parse_compact_utc_nanos(input: &str) -> Option<i128>
Expand description

Parses a timestamp written in TimestampFormat::CompactUtcNanos into nanoseconds since the Unix epoch.

Returns None unless the input is exactly 23 digits that make a valid date and time. Unlike Timestamp, this works up to the end of the year 9999.