pub fn serialize<S: Serializer>(tz: &TimeZone, se: S) -> Result<S::Ok, S::Error>
Expand description
Serialize a required TimeZone
.
This will result in an IANA time zone identifier, fixed offset or a POSIX time zone string.
This can return an error in some cases when the TimeZone
has no
succinct string representation. For example, when the TimeZone
is
derived from a system /etc/localtime
for which no IANA time zone
identifier could be found.