Skip to main content

format_xs_datetime

Function format_xs_datetime 

Source
pub fn format_xs_datetime(unix_us: i64) -> Result<String, DateTimeError>
Expand description

Format Unix microseconds as an accepted xs:dateTime string (UTC, Z).

The inverse of parse_xs_datetime for the model’s *_us fields: the parser recovers the same instant from the emitted text.