Expand description
Time related utils.
Constants
DATE is a time format like 20220301
HTTP_DATE is a time format like Sun, 06 Nov 1994 08:49:37 GMT
.
ISO8601 is a time format like 20220313T072004Z
.
Functions
Format time into date: 20220301
Format time into http date: Sun, 06 Nov 1994 08:49:37 GMT
Format time into ISO8601: 20220313T072004Z
Format time into RFC2822: Tue, 01 Jul 2003 10:52:37 +0200
Format time into RFC3339: 2022-03-13T07:20:04Z
Create datetime of now.
Parse time from RFC2822.
Parse time from RFC3339.
Type Definitions
DateTime is an alias of time::OffsetDateTime
Duration is an alias of time::Duration