Struct cursive::reexports::time::format_description::well_known::Rfc3339 [−]
pub struct Rfc3339;
Expand description
The format described in RFC 3339.
Format example: 1985-04-12T23:20:50.52Z
assert_eq!(
OffsetDateTime::parse("1985-04-12T23:20:50.52Z", &Rfc3339)?,
datetime!(1985-04-12 23:20:50.52 +00:00)
);
assert_eq!(
datetime!(1985-04-12 23:20:50.52 +00:00).format(&Rfc3339)?,
"1985-04-12T23:20:50.52Z"
);
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Rfc3339
impl UnwindSafe for Rfc3339
Blanket Implementations
Mutably borrows from an owned value. Read more
Calls the given closure and return the result. Read more
Calls the given closure on self
.