Expand description
Date and time parsing and formatting functions.
Modules§
- iso8601
- ISO 8601 date and time parsing and formatting functions.
- rfc3339
- Use the well-known RFC3339 format when serializing and deserializing an
OffsetDateTime. - rfc7231
- RFC 7231 date and time parsing and formatting functions.
- timestamp
- Treat an
OffsetDateTimeas a Unix timestamp for the purposes of serde. - unix_
time - Unix timestamp serde helpers.
Structs§
- Component
Range - An error type indicating that a component provided to a method was out of range, causing a failure.
- Offset
Date Time - A
PrimitiveDateTimewith aUtcOffset.
Functions§
- diff
- Get the difference between two dates.
- duration_
from_ days - duration_
from_ hours - duration_
from_ minutes - parse_
last_ state_ change - Similar to RFC 7231, but includes milliseconds.
- parse_
rfc3339 - RFC 3339: Date and Time on the Internet: Timestamps.
- parse_
rfc7231 - RFC 7231: Requirements for Internet Hosts - Application and Support.
- to_
last_ state_ change - Similar to preferred HTTP date format, but includes milliseconds.
- to_
rfc3339 - RFC 3339: Date and Time on the Internet: Timestamps.
- to_
rfc7231 - RFC 7231: Requirements for Internet Hosts - Application and Support.