Module time::serde::timestamp [−][src]
This is supported on crate feature
serde
only.Expand description
Treat an OffsetDateTime
as a Unix timestamp for the purposes of serde.
Use this module in combination with serde’s #[with]
attribute.
When deserializing, the offset is assumed to be UTC.
Modules
option | Treat an |
Functions
deserialize | Deserialize an |
serialize | Serialize an |