Skip to main content

Module conv

Module conv 

Source

Functionsยง

convert_from_datetime_utc_to_timestamp
It converts a DateTime::<Utc> to a timestamp. For example, the DateTime::<Utc> of the Unix Epoch will be converted to a timestamp of 0: DurationSinceUnixEpoch::ZERO.
convert_from_iso_8601_to_timestamp
It converts a string in ISO 8601 format to a timestamp.
convert_from_timestamp_to_datetime_utc
It converts a timestamp to a DateTime::<Utc>. For example, the timestamp of 0: DurationSinceUnixEpoch::ZERO will be converted to the DateTime::<Utc> of the Unix Epoch.