Skip to main content

parse_rfc3339

Function parse_rfc3339 

Source
pub fn parse_rfc3339(s: &str) -> Result<OffsetDateTime, Error>
Expand description

RFC 3339: Date and Time on the Internet: Timestamps.

https://www.rfc-editor.org/rfc/rfc3339

In TypeSpec properties are specified as utcDateTime or offsetDateTime. In OpenAPI 2.0 specifications properties are specified as "format": "date-time".

Example string: 1985-04-12T23:20:50.52Z.