pub fn render(at: OffsetDateTime) -> StringExpand description
Writes at in this format: RFC 3339, in UTC, with the Z designator.
RFC 3339 has no form for a year outside 0000..=9999, so an instant
there is written as the epoch: a string that is not a datetime would
fail every lexicon field it goes into.
use didbot_schema::format::datetime;
let at = time::macros::datetime!(1985-04-12 16:20:50.123 -07:00);
assert_eq!(datetime::render(at), "1985-04-12T23:20:50.123Z");