[go: up one dir, main page]

to_rfc3339

Function to_rfc3339 

Source
pub fn to_rfc3339(date: &OffsetDateTime) -> String
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.