Module date

Source
Expand description

Azure date and time parsing and formatting

Modules§

iso8601
rfc1123
rfc3339
Use the well-known RFC3339 format when serializing and deserializing an OffsetDateTime.
timestamp
Treat an OffsetDateTime as a Unix timestamp for the purposes of serde.

Functions§

diff
Get the difference between two dates.
duration_from_days
duration_from_hours
duration_from_minutes
parse_last_state_change
Similar to RFC 1123, but includes milliseconds.
parse_rfc1123
RFC 1123: Requirements for Internet Hosts - Application and Support
parse_rfc3339
RFC 3339: Date and Time on the Internet: Timestamps
to_last_state_change
Similar to preferred HTTP date format, but includes milliseconds
to_rfc1123
RFC 1123: Requirements for Internet Hosts - Application and Support
to_rfc3339
RFC 3339: Date and Time on the Internet: Timestamps