Module datetime

Source
Expand description

ISO 8601 date and time with time zone.

Modulesยง

serde ๐Ÿ”’
documented at re-export site

Structsยง

DateTime
ISO 8601 combined date and time with time zone.

Constantsยง

MAX_DATETIMEDeprecated
The maximum possible DateTime<Utc>.
MIN_DATETIMEDeprecated
The minimum possible DateTime<Utc>.
UNIX_EPOCH_DAY ๐Ÿ”’
Number of days between January 1, 1970 and December 31, 1 BCE which we define to be day 0. 4 full leap year cycles until December 31, 1600 4 * 146097 = 584388 1 day until January 1, 1601 1 369 years until January 1, 1970 369 * 365 = 134685 of which floor(369 / 4) are leap years floor(369 / 4) = 92 except for 1700, 1800 and 1900 -3 + โ€“โ€“โ€“โ€“ 719163

Functionsยง

map_local ๐Ÿ”’
Maps the local datetime to other datetime with given conversion function.