Function serialize
pub fn serialize<S>(
tz: &TimeZone,
se: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,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.