pub enum Tz {
Show 596 variants
Africa__Abidjan,
Africa__Accra,
Africa__Addis_Ababa,
Africa__Algiers,
Africa__Asmara,
Africa__Asmera,
Africa__Bamako,
Africa__Bangui,
Africa__Banjul,
Africa__Bissau,
Africa__Blantyre,
Africa__Brazzaville,
Africa__Bujumbura,
Africa__Cairo,
Africa__Casablanca,
Africa__Ceuta,
Africa__Conakry,
Africa__Dakar,
Africa__Dar_es_Salaam,
Africa__Djibouti,
Africa__Douala,
Africa__El_Aaiun,
Africa__Freetown,
Africa__Gaborone,
Africa__Harare,
Africa__Johannesburg,
Africa__Juba,
Africa__Kampala,
Africa__Khartoum,
Africa__Kigali,
Africa__Kinshasa,
Africa__Lagos,
Africa__Libreville,
Africa__Lome,
Africa__Luanda,
Africa__Lubumbashi,
Africa__Lusaka,
Africa__Malabo,
Africa__Maputo,
Africa__Maseru,
Africa__Mbabane,
Africa__Mogadishu,
Africa__Monrovia,
Africa__Nairobi,
Africa__Ndjamena,
Africa__Niamey,
Africa__Nouakchott,
Africa__Ouagadougou,
Africa__PortoNovo,
Africa__Sao_Tome,
Africa__Timbuktu,
Africa__Tripoli,
Africa__Tunis,
Africa__Windhoek,
America__Adak,
America__Anchorage,
America__Anguilla,
America__Antigua,
America__Araguaina,
America__Argentina__Buenos_Aires,
America__Argentina__Catamarca,
America__Argentina__ComodRivadavia,
America__Argentina__Cordoba,
America__Argentina__Jujuy,
America__Argentina__La_Rioja,
America__Argentina__Mendoza,
America__Argentina__Rio_Gallegos,
America__Argentina__Salta,
America__Argentina__San_Juan,
America__Argentina__San_Luis,
America__Argentina__Tucuman,
America__Argentina__Ushuaia,
America__Aruba,
America__Asuncion,
America__Atikokan,
America__Atka,
America__Bahia,
America__Bahia_Banderas,
America__Barbados,
America__Belem,
America__Belize,
America__BlancSablon,
America__Boa_Vista,
America__Bogota,
America__Boise,
America__Buenos_Aires,
America__Cambridge_Bay,
America__Campo_Grande,
America__Cancun,
America__Caracas,
America__Catamarca,
America__Cayenne,
America__Cayman,
America__Chicago,
America__Chihuahua,
America__Ciudad_Juarez,
America__Coral_Harbour,
America__Cordoba,
America__Costa_Rica,
America__Creston,
America__Cuiaba,
America__Curacao,
America__Danmarkshavn,
America__Dawson,
America__Dawson_Creek,
America__Denver,
America__Detroit,
America__Dominica,
America__Edmonton,
America__Eirunepe,
America__El_Salvador,
America__Ensenada,
America__Fort_Nelson,
America__Fort_Wayne,
America__Fortaleza,
America__Glace_Bay,
America__Godthab,
America__Goose_Bay,
America__Grand_Turk,
America__Grenada,
America__Guadeloupe,
America__Guatemala,
America__Guayaquil,
America__Guyana,
America__Halifax,
America__Havana,
America__Hermosillo,
America__Indiana__Indianapolis,
America__Indiana__Knox,
America__Indiana__Marengo,
America__Indiana__Petersburg,
America__Indiana__Tell_City,
America__Indiana__Vevay,
America__Indiana__Vincennes,
America__Indiana__Winamac,
America__Indianapolis,
America__Inuvik,
America__Iqaluit,
America__Jamaica,
America__Jujuy,
America__Juneau,
America__Kentucky__Louisville,
America__Kentucky__Monticello,
America__Knox_IN,
America__Kralendijk,
America__La_Paz,
America__Lima,
America__Los_Angeles,
America__Louisville,
America__Lower_Princes,
America__Maceio,
America__Managua,
America__Manaus,
America__Marigot,
America__Martinique,
America__Matamoros,
America__Mazatlan,
America__Mendoza,
America__Menominee,
America__Merida,
America__Metlakatla,
America__Mexico_City,
America__Miquelon,
America__Moncton,
America__Monterrey,
America__Montevideo,
America__Montreal,
America__Montserrat,
America__Nassau,
America__New_York,
America__Nipigon,
America__Nome,
America__Noronha,
America__North_Dakota__Beulah,
America__North_Dakota__Center,
America__North_Dakota__New_Salem,
America__Nuuk,
America__Ojinaga,
America__Panama,
America__Pangnirtung,
America__Paramaribo,
America__Phoenix,
America__PortauPrince,
America__Port_of_Spain,
America__Porto_Acre,
America__Porto_Velho,
America__Puerto_Rico,
America__Punta_Arenas,
America__Rainy_River,
America__Rankin_Inlet,
America__Recife,
America__Regina,
America__Resolute,
America__Rio_Branco,
America__Rosario,
America__Santa_Isabel,
America__Santarem,
America__Santiago,
America__Santo_Domingo,
America__Sao_Paulo,
America__Scoresbysund,
America__Shiprock,
America__Sitka,
America__St_Barthelemy,
America__St_Johns,
America__St_Kitts,
America__St_Lucia,
America__St_Thomas,
America__St_Vincent,
America__Swift_Current,
America__Tegucigalpa,
America__Thule,
America__Thunder_Bay,
America__Tijuana,
America__Toronto,
America__Tortola,
America__Vancouver,
America__Virgin,
America__Whitehorse,
America__Winnipeg,
America__Yakutat,
America__Yellowknife,
Antarctica__Casey,
Antarctica__Davis,
Antarctica__DumontDUrville,
Antarctica__Macquarie,
Antarctica__Mawson,
Antarctica__McMurdo,
Antarctica__Palmer,
Antarctica__Rothera,
Antarctica__South_Pole,
Antarctica__Syowa,
Antarctica__Troll,
Antarctica__Vostok,
Arctic__Longyearbyen,
Asia__Aden,
Asia__Almaty,
Asia__Amman,
Asia__Anadyr,
Asia__Aqtau,
Asia__Aqtobe,
Asia__Ashgabat,
Asia__Ashkhabad,
Asia__Atyrau,
Asia__Baghdad,
Asia__Bahrain,
Asia__Baku,
Asia__Bangkok,
Asia__Barnaul,
Asia__Beirut,
Asia__Bishkek,
Asia__Brunei,
Asia__Calcutta,
Asia__Chita,
Asia__Choibalsan,
Asia__Chongqing,
Asia__Chungking,
Asia__Colombo,
Asia__Dacca,
Asia__Damascus,
Asia__Dhaka,
Asia__Dili,
Asia__Dubai,
Asia__Dushanbe,
Asia__Famagusta,
Asia__Gaza,
Asia__Harbin,
Asia__Hebron,
Asia__Ho_Chi_Minh,
Asia__Hong_Kong,
Asia__Hovd,
Asia__Irkutsk,
Asia__Istanbul,
Asia__Jakarta,
Asia__Jayapura,
Asia__Jerusalem,
Asia__Kabul,
Asia__Kamchatka,
Asia__Karachi,
Asia__Kashgar,
Asia__Kathmandu,
Asia__Katmandu,
Asia__Khandyga,
Asia__Kolkata,
Asia__Krasnoyarsk,
Asia__Kuala_Lumpur,
Asia__Kuching,
Asia__Kuwait,
Asia__Macao,
Asia__Macau,
Asia__Magadan,
Asia__Makassar,
Asia__Manila,
Asia__Muscat,
Asia__Nicosia,
Asia__Novokuznetsk,
Asia__Novosibirsk,
Asia__Omsk,
Asia__Oral,
Asia__Phnom_Penh,
Asia__Pontianak,
Asia__Pyongyang,
Asia__Qatar,
Asia__Qostanay,
Asia__Qyzylorda,
Asia__Rangoon,
Asia__Riyadh,
Asia__Saigon,
Asia__Sakhalin,
Asia__Samarkand,
Asia__Seoul,
Asia__Shanghai,
Asia__Singapore,
Asia__Srednekolymsk,
Asia__Taipei,
Asia__Tashkent,
Asia__Tbilisi,
Asia__Tehran,
Asia__Tel_Aviv,
Asia__Thimbu,
Asia__Thimphu,
Asia__Tokyo,
Asia__Tomsk,
Asia__Ujung_Pandang,
Asia__Ulaanbaatar,
Asia__Ulan_Bator,
Asia__Urumqi,
Asia__UstNera,
Asia__Vientiane,
Asia__Vladivostok,
Asia__Yakutsk,
Asia__Yangon,
Asia__Yekaterinburg,
Asia__Yerevan,
Atlantic__Azores,
Atlantic__Bermuda,
Atlantic__Canary,
Atlantic__Cape_Verde,
Atlantic__Faeroe,
Atlantic__Faroe,
Atlantic__Jan_Mayen,
Atlantic__Madeira,
Atlantic__Reykjavik,
Atlantic__South_Georgia,
Atlantic__St_Helena,
Atlantic__Stanley,
Australia__ACT,
Australia__Adelaide,
Australia__Brisbane,
Australia__Broken_Hill,
Australia__Canberra,
Australia__Currie,
Australia__Darwin,
Australia__Eucla,
Australia__Hobart,
Australia__LHI,
Australia__Lindeman,
Australia__Lord_Howe,
Australia__Melbourne,
Australia__NSW,
Australia__North,
Australia__Perth,
Australia__Queensland,
Australia__South,
Australia__Sydney,
Australia__Tasmania,
Australia__Victoria,
Australia__West,
Australia__Yancowinna,
Brazil__Acre,
Brazil__DeNoronha,
Brazil__East,
Brazil__West,
CET,
CST6CDT,
Canada__Atlantic,
Canada__Central,
Canada__Eastern,
Canada__Mountain,
Canada__Newfoundland,
Canada__Pacific,
Canada__Saskatchewan,
Canada__Yukon,
Chile__Continental,
Chile__EasterIsland,
Cuba,
EET,
EST,
EST5EDT,
Egypt,
Eire,
Etc__GMT,
Etc__GMTPlus0,
Etc__GMTPlus1,
Etc__GMTPlus10,
Etc__GMTPlus11,
Etc__GMTPlus12,
Etc__GMTPlus2,
Etc__GMTPlus3,
Etc__GMTPlus4,
Etc__GMTPlus5,
Etc__GMTPlus6,
Etc__GMTPlus7,
Etc__GMTPlus8,
Etc__GMTPlus9,
Etc__GMTMinus0,
Etc__GMTMinus1,
Etc__GMTMinus10,
Etc__GMTMinus11,
Etc__GMTMinus12,
Etc__GMTMinus13,
Etc__GMTMinus14,
Etc__GMTMinus2,
Etc__GMTMinus3,
Etc__GMTMinus4,
Etc__GMTMinus5,
Etc__GMTMinus6,
Etc__GMTMinus7,
Etc__GMTMinus8,
Etc__GMTMinus9,
Etc__GMT0,
Etc__Greenwich,
Etc__UCT,
Etc__UTC,
Etc__Universal,
Etc__Zulu,
Europe__Amsterdam,
Europe__Andorra,
Europe__Astrakhan,
Europe__Athens,
Europe__Belfast,
Europe__Belgrade,
Europe__Berlin,
Europe__Bratislava,
Europe__Brussels,
Europe__Bucharest,
Europe__Budapest,
Europe__Busingen,
Europe__Chisinau,
Europe__Copenhagen,
Europe__Dublin,
Europe__Gibraltar,
Europe__Guernsey,
Europe__Helsinki,
Europe__Isle_of_Man,
Europe__Istanbul,
Europe__Jersey,
Europe__Kaliningrad,
Europe__Kiev,
Europe__Kirov,
Europe__Kyiv,
Europe__Lisbon,
Europe__Ljubljana,
Europe__London,
Europe__Luxembourg,
Europe__Madrid,
Europe__Malta,
Europe__Mariehamn,
Europe__Minsk,
Europe__Monaco,
Europe__Moscow,
Europe__Nicosia,
Europe__Oslo,
Europe__Paris,
Europe__Podgorica,
Europe__Prague,
Europe__Riga,
Europe__Rome,
Europe__Samara,
Europe__San_Marino,
Europe__Sarajevo,
Europe__Saratov,
Europe__Simferopol,
Europe__Skopje,
Europe__Sofia,
Europe__Stockholm,
Europe__Tallinn,
Europe__Tirane,
Europe__Tiraspol,
Europe__Ulyanovsk,
Europe__Uzhgorod,
Europe__Vaduz,
Europe__Vatican,
Europe__Vienna,
Europe__Vilnius,
Europe__Volgograd,
Europe__Warsaw,
Europe__Zagreb,
Europe__Zaporozhye,
Europe__Zurich,
GB,
GBEire,
GMT,
GMTPlus0,
GMTMinus0,
GMT0,
Greenwich,
HST,
Hongkong,
Iceland,
Indian__Antananarivo,
Indian__Chagos,
Indian__Christmas,
Indian__Cocos,
Indian__Comoro,
Indian__Kerguelen,
Indian__Mahe,
Indian__Maldives,
Indian__Mauritius,
Indian__Mayotte,
Indian__Reunion,
Iran,
Israel,
Jamaica,
Japan,
Kwajalein,
Libya,
MET,
MST,
MST7MDT,
Mexico__BajaNorte,
Mexico__BajaSur,
Mexico__General,
NZ,
NZCHAT,
Navajo,
PRC,
PST8PDT,
Pacific__Apia,
Pacific__Auckland,
Pacific__Bougainville,
Pacific__Chatham,
Pacific__Chuuk,
Pacific__Easter,
Pacific__Efate,
Pacific__Enderbury,
Pacific__Fakaofo,
Pacific__Fiji,
Pacific__Funafuti,
Pacific__Galapagos,
Pacific__Gambier,
Pacific__Guadalcanal,
Pacific__Guam,
Pacific__Honolulu,
Pacific__Johnston,
Pacific__Kanton,
Pacific__Kiritimati,
Pacific__Kosrae,
Pacific__Kwajalein,
Pacific__Majuro,
Pacific__Marquesas,
Pacific__Midway,
Pacific__Nauru,
Pacific__Niue,
Pacific__Norfolk,
Pacific__Noumea,
Pacific__Pago_Pago,
Pacific__Palau,
Pacific__Pitcairn,
Pacific__Pohnpei,
Pacific__Ponape,
Pacific__Port_Moresby,
Pacific__Rarotonga,
Pacific__Saipan,
Pacific__Samoa,
Pacific__Tahiti,
Pacific__Tarawa,
Pacific__Tongatapu,
Pacific__Truk,
Pacific__Wake,
Pacific__Wallis,
Pacific__Yap,
Poland,
Portugal,
ROC,
ROK,
Singapore,
Turkey,
UCT,
US__Alaska,
US__Aleutian,
US__Arizona,
US__Central,
US__EastIndiana,
US__Eastern,
US__Hawaii,
US__IndianaStarke,
US__Michigan,
US__Mountain,
US__Pacific,
US__Samoa,
UTC,
Universal,
WSU,
WET,
Zulu,
}
Expand description
TimeZones built at compile time from the tz database
This implements chrono::TimeZone
so that it may be used in and to
construct chrono’s DateTime type. See the root module documentation
for details.
Variants§
Africa__Abidjan
Africa/Abidjan
Africa__Accra
Africa/Accra
Africa__Addis_Ababa
Africa/Addis_Ababa
Africa__Algiers
Africa/Algiers
Africa__Asmara
Africa/Asmara
Africa__Asmera
Africa/Asmera
Africa__Bamako
Africa/Bamako
Africa__Bangui
Africa/Bangui
Africa__Banjul
Africa/Banjul
Africa__Bissau
Africa/Bissau
Africa__Blantyre
Africa/Blantyre
Africa__Brazzaville
Africa/Brazzaville
Africa__Bujumbura
Africa/Bujumbura
Africa__Cairo
Africa/Cairo
Africa__Casablanca
Africa/Casablanca
Africa__Ceuta
Africa/Ceuta
Africa__Conakry
Africa/Conakry
Africa__Dakar
Africa/Dakar
Africa__Dar_es_Salaam
Africa/Dar_es_Salaam
Africa__Djibouti
Africa/Djibouti
Africa__Douala
Africa/Douala
Africa__El_Aaiun
Africa/El_Aaiun
Africa__Freetown
Africa/Freetown
Africa__Gaborone
Africa/Gaborone
Africa__Harare
Africa/Harare
Africa__Johannesburg
Africa/Johannesburg
Africa__Juba
Africa/Juba
Africa__Kampala
Africa/Kampala
Africa__Khartoum
Africa/Khartoum
Africa__Kigali
Africa/Kigali
Africa__Kinshasa
Africa/Kinshasa
Africa__Lagos
Africa/Lagos
Africa__Libreville
Africa/Libreville
Africa__Lome
Africa/Lome
Africa__Luanda
Africa/Luanda
Africa__Lubumbashi
Africa/Lubumbashi
Africa__Lusaka
Africa/Lusaka
Africa__Malabo
Africa/Malabo
Africa__Maputo
Africa/Maputo
Africa__Maseru
Africa/Maseru
Africa__Mbabane
Africa/Mbabane
Africa__Mogadishu
Africa/Mogadishu
Africa__Monrovia
Africa/Monrovia
Africa__Nairobi
Africa/Nairobi
Africa__Ndjamena
Africa/Ndjamena
Africa__Niamey
Africa/Niamey
Africa__Nouakchott
Africa/Nouakchott
Africa__Ouagadougou
Africa/Ouagadougou
Africa__PortoNovo
Africa/Porto-Novo
Africa__Sao_Tome
Africa/Sao_Tome
Africa__Timbuktu
Africa/Timbuktu
Africa__Tripoli
Africa/Tripoli
Africa__Tunis
Africa/Tunis
Africa__Windhoek
Africa/Windhoek
America__Adak
America/Adak
America__Anchorage
America/Anchorage
America__Anguilla
America/Anguilla
America__Antigua
America/Antigua
America__Araguaina
America/Araguaina
America__Argentina__Buenos_Aires
America/Argentina/Buenos_Aires
America__Argentina__Catamarca
America/Argentina/Catamarca
America__Argentina__ComodRivadavia
America/Argentina/ComodRivadavia
America__Argentina__Cordoba
America/Argentina/Cordoba
America__Argentina__Jujuy
America/Argentina/Jujuy
America__Argentina__La_Rioja
America/Argentina/La_Rioja
America__Argentina__Mendoza
America/Argentina/Mendoza
America__Argentina__Rio_Gallegos
America/Argentina/Rio_Gallegos
America__Argentina__Salta
America/Argentina/Salta
America__Argentina__San_Juan
America/Argentina/San_Juan
America__Argentina__San_Luis
America/Argentina/San_Luis
America__Argentina__Tucuman
America/Argentina/Tucuman
America__Argentina__Ushuaia
America/Argentina/Ushuaia
America__Aruba
America/Aruba
America__Asuncion
America/Asuncion
America__Atikokan
America/Atikokan
America__Atka
America/Atka
America__Bahia
America/Bahia
America__Bahia_Banderas
America/Bahia_Banderas
America__Barbados
America/Barbados
America__Belem
America/Belem
America__Belize
America/Belize
America__BlancSablon
America/Blanc-Sablon
America__Boa_Vista
America/Boa_Vista
America__Bogota
America/Bogota
America__Boise
America/Boise
America__Buenos_Aires
America/Buenos_Aires
America__Cambridge_Bay
America/Cambridge_Bay
America__Campo_Grande
America/Campo_Grande
America__Cancun
America/Cancun
America__Caracas
America/Caracas
America__Catamarca
America/Catamarca
America__Cayenne
America/Cayenne
America__Cayman
America/Cayman
America__Chicago
America/Chicago
America__Chihuahua
America/Chihuahua
America__Ciudad_Juarez
America/Ciudad_Juarez
America__Coral_Harbour
America/Coral_Harbour
America__Cordoba
America/Cordoba
America__Costa_Rica
America/Costa_Rica
America__Creston
America/Creston
America__Cuiaba
America/Cuiaba
America__Curacao
America/Curacao
America__Danmarkshavn
America/Danmarkshavn
America__Dawson
America/Dawson
America__Dawson_Creek
America/Dawson_Creek
America__Denver
America/Denver
America__Detroit
America/Detroit
America__Dominica
America/Dominica
America__Edmonton
America/Edmonton
America__Eirunepe
America/Eirunepe
America__El_Salvador
America/El_Salvador
America__Ensenada
America/Ensenada
America__Fort_Nelson
America/Fort_Nelson
America__Fort_Wayne
America/Fort_Wayne
America__Fortaleza
America/Fortaleza
America__Glace_Bay
America/Glace_Bay
America__Godthab
America/Godthab
America__Goose_Bay
America/Goose_Bay
America__Grand_Turk
America/Grand_Turk
America__Grenada
America/Grenada
America__Guadeloupe
America/Guadeloupe
America__Guatemala
America/Guatemala
America__Guayaquil
America/Guayaquil
America__Guyana
America/Guyana
America__Halifax
America/Halifax
America__Havana
America/Havana
America__Hermosillo
America/Hermosillo
America__Indiana__Indianapolis
America/Indiana/Indianapolis
America__Indiana__Knox
America/Indiana/Knox
America__Indiana__Marengo
America/Indiana/Marengo
America__Indiana__Petersburg
America/Indiana/Petersburg
America__Indiana__Tell_City
America/Indiana/Tell_City
America__Indiana__Vevay
America/Indiana/Vevay
America__Indiana__Vincennes
America/Indiana/Vincennes
America__Indiana__Winamac
America/Indiana/Winamac
America__Indianapolis
America/Indianapolis
America__Inuvik
America/Inuvik
America__Iqaluit
America/Iqaluit
America__Jamaica
America/Jamaica
America__Jujuy
America/Jujuy
America__Juneau
America/Juneau
America__Kentucky__Louisville
America/Kentucky/Louisville
America__Kentucky__Monticello
America/Kentucky/Monticello
America__Knox_IN
America/Knox_IN
America__Kralendijk
America/Kralendijk
America__La_Paz
America/La_Paz
America__Lima
America/Lima
America__Los_Angeles
America/Los_Angeles
America__Louisville
America/Louisville
America__Lower_Princes
America/Lower_Princes
America__Maceio
America/Maceio
America__Managua
America/Managua
America__Manaus
America/Manaus
America__Marigot
America/Marigot
America__Martinique
America/Martinique
America__Matamoros
America/Matamoros
America__Mazatlan
America/Mazatlan
America__Mendoza
America/Mendoza
America__Menominee
America/Menominee
America__Merida
America/Merida
America__Metlakatla
America/Metlakatla
America__Mexico_City
America/Mexico_City
America__Miquelon
America/Miquelon
America__Moncton
America/Moncton
America__Monterrey
America/Monterrey
America__Montevideo
America/Montevideo
America__Montreal
America/Montreal
America__Montserrat
America/Montserrat
America__Nassau
America/Nassau
America__New_York
America/New_York
America__Nipigon
America/Nipigon
America__Nome
America/Nome
America__Noronha
America/Noronha
America__North_Dakota__Beulah
America/North_Dakota/Beulah
America__North_Dakota__Center
America/North_Dakota/Center
America__North_Dakota__New_Salem
America/North_Dakota/New_Salem
America__Nuuk
America/Nuuk
America__Ojinaga
America/Ojinaga
America__Panama
America/Panama
America__Pangnirtung
America/Pangnirtung
America__Paramaribo
America/Paramaribo
America__Phoenix
America/Phoenix
America__PortauPrince
America/Port-au-Prince
America__Port_of_Spain
America/Port_of_Spain
America__Porto_Acre
America/Porto_Acre
America__Porto_Velho
America/Porto_Velho
America__Puerto_Rico
America/Puerto_Rico
America__Punta_Arenas
America/Punta_Arenas
America__Rainy_River
America/Rainy_River
America__Rankin_Inlet
America/Rankin_Inlet
America__Recife
America/Recife
America__Regina
America/Regina
America__Resolute
America/Resolute
America__Rio_Branco
America/Rio_Branco
America__Rosario
America/Rosario
America__Santa_Isabel
America/Santa_Isabel
America__Santarem
America/Santarem
America__Santiago
America/Santiago
America__Santo_Domingo
America/Santo_Domingo
America__Sao_Paulo
America/Sao_Paulo
America__Scoresbysund
America/Scoresbysund
America__Shiprock
America/Shiprock
America__Sitka
America/Sitka
America__St_Barthelemy
America/St_Barthelemy
America__St_Johns
America/St_Johns
America__St_Kitts
America/St_Kitts
America__St_Lucia
America/St_Lucia
America__St_Thomas
America/St_Thomas
America__St_Vincent
America/St_Vincent
America__Swift_Current
America/Swift_Current
America__Tegucigalpa
America/Tegucigalpa
America__Thule
America/Thule
America__Thunder_Bay
America/Thunder_Bay
America__Tijuana
America/Tijuana
America__Toronto
America/Toronto
America__Tortola
America/Tortola
America__Vancouver
America/Vancouver
America__Virgin
America/Virgin
America__Whitehorse
America/Whitehorse
America__Winnipeg
America/Winnipeg
America__Yakutat
America/Yakutat
America__Yellowknife
America/Yellowknife
Antarctica__Casey
Antarctica/Casey
Antarctica__Davis
Antarctica/Davis
Antarctica__DumontDUrville
Antarctica/DumontDUrville
Antarctica__Macquarie
Antarctica/Macquarie
Antarctica__Mawson
Antarctica/Mawson
Antarctica__McMurdo
Antarctica/McMurdo
Antarctica__Palmer
Antarctica/Palmer
Antarctica__Rothera
Antarctica/Rothera
Antarctica__South_Pole
Antarctica/South_Pole
Antarctica__Syowa
Antarctica/Syowa
Antarctica__Troll
Antarctica/Troll
Antarctica__Vostok
Antarctica/Vostok
Arctic__Longyearbyen
Arctic/Longyearbyen
Asia__Aden
Asia/Aden
Asia__Almaty
Asia/Almaty
Asia__Amman
Asia/Amman
Asia__Anadyr
Asia/Anadyr
Asia__Aqtau
Asia/Aqtau
Asia__Aqtobe
Asia/Aqtobe
Asia__Ashgabat
Asia/Ashgabat
Asia__Ashkhabad
Asia/Ashkhabad
Asia__Atyrau
Asia/Atyrau
Asia__Baghdad
Asia/Baghdad
Asia__Bahrain
Asia/Bahrain
Asia__Baku
Asia/Baku
Asia__Bangkok
Asia/Bangkok
Asia__Barnaul
Asia/Barnaul
Asia__Beirut
Asia/Beirut
Asia__Bishkek
Asia/Bishkek
Asia__Brunei
Asia/Brunei
Asia__Calcutta
Asia/Calcutta
Asia__Chita
Asia/Chita
Asia__Choibalsan
Asia/Choibalsan
Asia__Chongqing
Asia/Chongqing
Asia__Chungking
Asia/Chungking
Asia__Colombo
Asia/Colombo
Asia__Dacca
Asia/Dacca
Asia__Damascus
Asia/Damascus
Asia__Dhaka
Asia/Dhaka
Asia__Dili
Asia/Dili
Asia__Dubai
Asia/Dubai
Asia__Dushanbe
Asia/Dushanbe
Asia__Famagusta
Asia/Famagusta
Asia__Gaza
Asia/Gaza
Asia__Harbin
Asia/Harbin
Asia__Hebron
Asia/Hebron
Asia__Ho_Chi_Minh
Asia/Ho_Chi_Minh
Asia__Hong_Kong
Asia/Hong_Kong
Asia__Hovd
Asia/Hovd
Asia__Irkutsk
Asia/Irkutsk
Asia__Istanbul
Asia/Istanbul
Asia__Jakarta
Asia/Jakarta
Asia__Jayapura
Asia/Jayapura
Asia__Jerusalem
Asia/Jerusalem
Asia__Kabul
Asia/Kabul
Asia__Kamchatka
Asia/Kamchatka
Asia__Karachi
Asia/Karachi
Asia__Kashgar
Asia/Kashgar
Asia__Kathmandu
Asia/Kathmandu
Asia__Katmandu
Asia/Katmandu
Asia__Khandyga
Asia/Khandyga
Asia__Kolkata
Asia/Kolkata
Asia__Krasnoyarsk
Asia/Krasnoyarsk
Asia__Kuala_Lumpur
Asia/Kuala_Lumpur
Asia__Kuching
Asia/Kuching
Asia__Kuwait
Asia/Kuwait
Asia__Macao
Asia/Macao
Asia__Macau
Asia/Macau
Asia__Magadan
Asia/Magadan
Asia__Makassar
Asia/Makassar
Asia__Manila
Asia/Manila
Asia__Muscat
Asia/Muscat
Asia__Nicosia
Asia/Nicosia
Asia__Novokuznetsk
Asia/Novokuznetsk
Asia__Novosibirsk
Asia/Novosibirsk
Asia__Omsk
Asia/Omsk
Asia__Oral
Asia/Oral
Asia__Phnom_Penh
Asia/Phnom_Penh
Asia__Pontianak
Asia/Pontianak
Asia__Pyongyang
Asia/Pyongyang
Asia__Qatar
Asia/Qatar
Asia__Qostanay
Asia/Qostanay
Asia__Qyzylorda
Asia/Qyzylorda
Asia__Rangoon
Asia/Rangoon
Asia__Riyadh
Asia/Riyadh
Asia__Saigon
Asia/Saigon
Asia__Sakhalin
Asia/Sakhalin
Asia__Samarkand
Asia/Samarkand
Asia__Seoul
Asia/Seoul
Asia__Shanghai
Asia/Shanghai
Asia__Singapore
Asia/Singapore
Asia__Srednekolymsk
Asia/Srednekolymsk
Asia__Taipei
Asia/Taipei
Asia__Tashkent
Asia/Tashkent
Asia__Tbilisi
Asia/Tbilisi
Asia__Tehran
Asia/Tehran
Asia__Tel_Aviv
Asia/Tel_Aviv
Asia__Thimbu
Asia/Thimbu
Asia__Thimphu
Asia/Thimphu
Asia__Tokyo
Asia/Tokyo
Asia__Tomsk
Asia/Tomsk
Asia__Ujung_Pandang
Asia/Ujung_Pandang
Asia__Ulaanbaatar
Asia/Ulaanbaatar
Asia__Ulan_Bator
Asia/Ulan_Bator
Asia__Urumqi
Asia/Urumqi
Asia__UstNera
Asia/Ust-Nera
Asia__Vientiane
Asia/Vientiane
Asia__Vladivostok
Asia/Vladivostok
Asia__Yakutsk
Asia/Yakutsk
Asia__Yangon
Asia/Yangon
Asia__Yekaterinburg
Asia/Yekaterinburg
Asia__Yerevan
Asia/Yerevan
Atlantic__Azores
Atlantic/Azores
Atlantic__Bermuda
Atlantic/Bermuda
Atlantic__Canary
Atlantic/Canary
Atlantic__Cape_Verde
Atlantic/Cape_Verde
Atlantic__Faeroe
Atlantic/Faeroe
Atlantic__Faroe
Atlantic/Faroe
Atlantic__Jan_Mayen
Atlantic/Jan_Mayen
Atlantic__Madeira
Atlantic/Madeira
Atlantic__Reykjavik
Atlantic/Reykjavik
Atlantic__South_Georgia
Atlantic/South_Georgia
Atlantic__St_Helena
Atlantic/St_Helena
Atlantic__Stanley
Atlantic/Stanley
Australia__ACT
Australia/ACT
Australia__Adelaide
Australia/Adelaide
Australia__Brisbane
Australia/Brisbane
Australia__Broken_Hill
Australia/Broken_Hill
Australia__Canberra
Australia/Canberra
Australia__Currie
Australia/Currie
Australia__Darwin
Australia/Darwin
Australia__Eucla
Australia/Eucla
Australia__Hobart
Australia/Hobart
Australia__LHI
Australia/LHI
Australia__Lindeman
Australia/Lindeman
Australia__Lord_Howe
Australia/Lord_Howe
Australia__Melbourne
Australia/Melbourne
Australia__NSW
Australia/NSW
Australia__North
Australia/North
Australia__Perth
Australia/Perth
Australia__Queensland
Australia/Queensland
Australia__South
Australia/South
Australia__Sydney
Australia/Sydney
Australia__Tasmania
Australia/Tasmania
Australia__Victoria
Australia/Victoria
Australia__West
Australia/West
Australia__Yancowinna
Australia/Yancowinna
Brazil__Acre
Brazil/Acre
Brazil__DeNoronha
Brazil/DeNoronha
Brazil__East
Brazil/East
Brazil__West
Brazil/West
CET
CET
CST6CDT
CST6CDT
Canada__Atlantic
Canada/Atlantic
Canada__Central
Canada/Central
Canada__Eastern
Canada/Eastern
Canada__Mountain
Canada/Mountain
Canada__Newfoundland
Canada/Newfoundland
Canada__Pacific
Canada/Pacific
Canada__Saskatchewan
Canada/Saskatchewan
Canada__Yukon
Canada/Yukon
Chile__Continental
Chile/Continental
Chile__EasterIsland
Chile/EasterIsland
Cuba
Cuba
EET
EET
EST
EST
EST5EDT
EST5EDT
Egypt
Egypt
Eire
Eire
Etc__GMT
Etc/GMT
Etc__GMTPlus0
Etc/GMT+0
Etc__GMTPlus1
Etc/GMT+1
Etc__GMTPlus10
Etc/GMT+10
Etc__GMTPlus11
Etc/GMT+11
Etc__GMTPlus12
Etc/GMT+12
Etc__GMTPlus2
Etc/GMT+2
Etc__GMTPlus3
Etc/GMT+3
Etc__GMTPlus4
Etc/GMT+4
Etc__GMTPlus5
Etc/GMT+5
Etc__GMTPlus6
Etc/GMT+6
Etc__GMTPlus7
Etc/GMT+7
Etc__GMTPlus8
Etc/GMT+8
Etc__GMTPlus9
Etc/GMT+9
Etc__GMTMinus0
Etc/GMT-0
Etc__GMTMinus1
Etc/GMT-1
Etc__GMTMinus10
Etc/GMT-10
Etc__GMTMinus11
Etc/GMT-11
Etc__GMTMinus12
Etc/GMT-12
Etc__GMTMinus13
Etc/GMT-13
Etc__GMTMinus14
Etc/GMT-14
Etc__GMTMinus2
Etc/GMT-2
Etc__GMTMinus3
Etc/GMT-3
Etc__GMTMinus4
Etc/GMT-4
Etc__GMTMinus5
Etc/GMT-5
Etc__GMTMinus6
Etc/GMT-6
Etc__GMTMinus7
Etc/GMT-7
Etc__GMTMinus8
Etc/GMT-8
Etc__GMTMinus9
Etc/GMT-9
Etc__GMT0
Etc/GMT0
Etc__Greenwich
Etc/Greenwich
Etc__UCT
Etc/UCT
Etc__UTC
Etc/UTC
Etc__Universal
Etc/Universal
Etc__Zulu
Etc/Zulu
Europe__Amsterdam
Europe/Amsterdam
Europe__Andorra
Europe/Andorra
Europe__Astrakhan
Europe/Astrakhan
Europe__Athens
Europe/Athens
Europe__Belfast
Europe/Belfast
Europe__Belgrade
Europe/Belgrade
Europe__Berlin
Europe/Berlin
Europe__Bratislava
Europe/Bratislava
Europe__Brussels
Europe/Brussels
Europe__Bucharest
Europe/Bucharest
Europe__Budapest
Europe/Budapest
Europe__Busingen
Europe/Busingen
Europe__Chisinau
Europe/Chisinau
Europe__Copenhagen
Europe/Copenhagen
Europe__Dublin
Europe/Dublin
Europe__Gibraltar
Europe/Gibraltar
Europe__Guernsey
Europe/Guernsey
Europe__Helsinki
Europe/Helsinki
Europe__Isle_of_Man
Europe/Isle_of_Man
Europe__Istanbul
Europe/Istanbul
Europe__Jersey
Europe/Jersey
Europe__Kaliningrad
Europe/Kaliningrad
Europe__Kiev
Europe/Kiev
Europe__Kirov
Europe/Kirov
Europe__Kyiv
Europe/Kyiv
Europe__Lisbon
Europe/Lisbon
Europe__Ljubljana
Europe/Ljubljana
Europe__London
Europe/London
Europe__Luxembourg
Europe/Luxembourg
Europe__Madrid
Europe/Madrid
Europe__Malta
Europe/Malta
Europe__Mariehamn
Europe/Mariehamn
Europe__Minsk
Europe/Minsk
Europe__Monaco
Europe/Monaco
Europe__Moscow
Europe/Moscow
Europe__Nicosia
Europe/Nicosia
Europe__Oslo
Europe/Oslo
Europe__Paris
Europe/Paris
Europe__Podgorica
Europe/Podgorica
Europe__Prague
Europe/Prague
Europe__Riga
Europe/Riga
Europe__Rome
Europe/Rome
Europe__Samara
Europe/Samara
Europe__San_Marino
Europe/San_Marino
Europe__Sarajevo
Europe/Sarajevo
Europe__Saratov
Europe/Saratov
Europe__Simferopol
Europe/Simferopol
Europe__Skopje
Europe/Skopje
Europe__Sofia
Europe/Sofia
Europe__Stockholm
Europe/Stockholm
Europe__Tallinn
Europe/Tallinn
Europe__Tirane
Europe/Tirane
Europe__Tiraspol
Europe/Tiraspol
Europe__Ulyanovsk
Europe/Ulyanovsk
Europe__Uzhgorod
Europe/Uzhgorod
Europe__Vaduz
Europe/Vaduz
Europe__Vatican
Europe/Vatican
Europe__Vienna
Europe/Vienna
Europe__Vilnius
Europe/Vilnius
Europe__Volgograd
Europe/Volgograd
Europe__Warsaw
Europe/Warsaw
Europe__Zagreb
Europe/Zagreb
Europe__Zaporozhye
Europe/Zaporozhye
Europe__Zurich
Europe/Zurich
GB
GB
GBEire
GB-Eire
GMT
GMT
GMTPlus0
GMT+0
GMTMinus0
GMT-0
GMT0
GMT0
Greenwich
Greenwich
HST
HST
Hongkong
Hongkong
Iceland
Iceland
Indian__Antananarivo
Indian/Antananarivo
Indian__Chagos
Indian/Chagos
Indian__Christmas
Indian/Christmas
Indian__Cocos
Indian/Cocos
Indian__Comoro
Indian/Comoro
Indian__Kerguelen
Indian/Kerguelen
Indian__Mahe
Indian/Mahe
Indian__Maldives
Indian/Maldives
Indian__Mauritius
Indian/Mauritius
Indian__Mayotte
Indian/Mayotte
Indian__Reunion
Indian/Reunion
Iran
Iran
Israel
Israel
Jamaica
Jamaica
Japan
Japan
Kwajalein
Kwajalein
Libya
Libya
MET
MET
MST
MST
MST7MDT
MST7MDT
Mexico__BajaNorte
Mexico/BajaNorte
Mexico__BajaSur
Mexico/BajaSur
Mexico__General
Mexico/General
NZ
NZ
NZCHAT
NZ-CHAT
Navajo
PRC
PRC
PST8PDT
PST8PDT
Pacific__Apia
Pacific/Apia
Pacific__Auckland
Pacific/Auckland
Pacific__Bougainville
Pacific/Bougainville
Pacific__Chatham
Pacific/Chatham
Pacific__Chuuk
Pacific/Chuuk
Pacific__Easter
Pacific/Easter
Pacific__Efate
Pacific/Efate
Pacific__Enderbury
Pacific/Enderbury
Pacific__Fakaofo
Pacific/Fakaofo
Pacific__Fiji
Pacific/Fiji
Pacific__Funafuti
Pacific/Funafuti
Pacific__Galapagos
Pacific/Galapagos
Pacific__Gambier
Pacific/Gambier
Pacific__Guadalcanal
Pacific/Guadalcanal
Pacific__Guam
Pacific/Guam
Pacific__Honolulu
Pacific/Honolulu
Pacific__Johnston
Pacific/Johnston
Pacific__Kanton
Pacific/Kanton
Pacific__Kiritimati
Pacific/Kiritimati
Pacific__Kosrae
Pacific/Kosrae
Pacific__Kwajalein
Pacific/Kwajalein
Pacific__Majuro
Pacific/Majuro
Pacific__Marquesas
Pacific/Marquesas
Pacific__Midway
Pacific/Midway
Pacific__Nauru
Pacific/Nauru
Pacific__Niue
Pacific/Niue
Pacific__Norfolk
Pacific/Norfolk
Pacific__Noumea
Pacific/Noumea
Pacific__Pago_Pago
Pacific/Pago_Pago
Pacific__Palau
Pacific/Palau
Pacific__Pitcairn
Pacific/Pitcairn
Pacific__Pohnpei
Pacific/Pohnpei
Pacific__Ponape
Pacific/Ponape
Pacific__Port_Moresby
Pacific/Port_Moresby
Pacific__Rarotonga
Pacific/Rarotonga
Pacific__Saipan
Pacific/Saipan
Pacific__Samoa
Pacific/Samoa
Pacific__Tahiti
Pacific/Tahiti
Pacific__Tarawa
Pacific/Tarawa
Pacific__Tongatapu
Pacific/Tongatapu
Pacific__Truk
Pacific/Truk
Pacific__Wake
Pacific/Wake
Pacific__Wallis
Pacific/Wallis
Pacific__Yap
Pacific/Yap
Poland
Poland
Portugal
Portugal
ROC
ROC
ROK
ROK
Singapore
Singapore
Turkey
Turkey
UCT
UCT
US__Alaska
US/Alaska
US__Aleutian
US/Aleutian
US__Arizona
US/Arizona
US__Central
US/Central
US__EastIndiana
US/East-Indiana
US__Eastern
US/Eastern
US__Hawaii
US/Hawaii
US__IndianaStarke
US/Indiana-Starke
US__Michigan
US/Michigan
US__Mountain
US/Mountain
US__Pacific
US/Pacific
US__Samoa
US/Samoa
UTC
UTC
Universal
Universal
WSU
W-SU
WET
WET
Zulu
Zulu
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Tz
impl<'de> Deserialize<'de> for Tz
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
source§impl TimeZone for Tz
impl TimeZone for Tz
§type Offset = TzOffset
type Offset = TzOffset
TimeZone
value can be recovered via TimeZone::from_offset
.source§fn from_offset(offset: &Self::Offset) -> Self
fn from_offset(offset: &Self::Offset) -> Self
source§fn offset_from_local_date(&self, local: &NaiveDate) -> LocalResult<Self::Offset>
fn offset_from_local_date(&self, local: &NaiveDate) -> LocalResult<Self::Offset>
NaiveDate
if possible.source§fn offset_from_local_datetime(
&self,
local: &NaiveDateTime,
) -> LocalResult<Self::Offset>
fn offset_from_local_datetime( &self, local: &NaiveDateTime, ) -> LocalResult<Self::Offset>
NaiveDateTime
if possible.source§fn offset_from_utc_date(&self, utc: &NaiveDate) -> Self::Offset
fn offset_from_utc_date(&self, utc: &NaiveDate) -> Self::Offset
NaiveDate
. This cannot fail.source§fn offset_from_utc_datetime(&self, utc: &NaiveDateTime) -> Self::Offset
fn offset_from_utc_datetime(&self, utc: &NaiveDateTime) -> Self::Offset
NaiveDateTime
. This cannot fail.source§fn with_ymd_and_hms(
&self,
year: i32,
month: u32,
day: u32,
hour: u32,
min: u32,
sec: u32,
) -> LocalResult<DateTime<Self>>
fn with_ymd_and_hms( &self, year: i32, month: u32, day: u32, hour: u32, min: u32, sec: u32, ) -> LocalResult<DateTime<Self>>
DateTime
from year, month, day, time components and current time zone. Read moresource§fn ymd(&self, year: i32, month: u32, day: u32) -> Date<Self>
fn ymd(&self, year: i32, month: u32, day: u32) -> Date<Self>
with_ymd_and_hms()
insteadDate
from year, month, day and the current time zone.
This assumes the proleptic Gregorian calendar, with the year 0 being 1 BCE. Read moresource§fn ymd_opt(&self, year: i32, month: u32, day: u32) -> LocalResult<Date<Self>>
fn ymd_opt(&self, year: i32, month: u32, day: u32) -> LocalResult<Date<Self>>
with_ymd_and_hms()
insteadDate
from year, month, day and the current time zone.
This assumes the proleptic Gregorian calendar, with the year 0 being 1 BCE. Read moresource§fn yo(&self, year: i32, ordinal: u32) -> Date<Self>
fn yo(&self, year: i32, ordinal: u32) -> Date<Self>
from_local_datetime()
with a NaiveDateTime
insteadDate
from year, day of year (DOY or “ordinal”) and the current time zone.
This assumes the proleptic Gregorian calendar, with the year 0 being 1 BCE. Read moresource§fn yo_opt(&self, year: i32, ordinal: u32) -> LocalResult<Date<Self>>
fn yo_opt(&self, year: i32, ordinal: u32) -> LocalResult<Date<Self>>
from_local_datetime()
with a NaiveDateTime
insteadDate
from year, day of year (DOY or “ordinal”) and the current time zone.
This assumes the proleptic Gregorian calendar, with the year 0 being 1 BCE. Read moresource§fn isoywd(&self, year: i32, week: u32, weekday: Weekday) -> Date<Self>
fn isoywd(&self, year: i32, week: u32, weekday: Weekday) -> Date<Self>
from_local_datetime()
with a NaiveDateTime
insteadDate
from ISO week date (year and week number), day of the week (DOW) and
the current time zone.
This assumes the proleptic Gregorian calendar, with the year 0 being 1 BCE.
The resulting Date
may have a different year from the input year. Read moresource§fn isoywd_opt(
&self,
year: i32,
week: u32,
weekday: Weekday,
) -> LocalResult<Date<Self>>
fn isoywd_opt( &self, year: i32, week: u32, weekday: Weekday, ) -> LocalResult<Date<Self>>
from_local_datetime()
with a NaiveDateTime
insteadDate
from ISO week date (year and week number), day of the week (DOW) and
the current time zone.
This assumes the proleptic Gregorian calendar, with the year 0 being 1 BCE.
The resulting Date
may have a different year from the input year. Read moresource§fn timestamp(&self, secs: i64, nsecs: u32) -> DateTime<Self>
fn timestamp(&self, secs: i64, nsecs: u32) -> DateTime<Self>
timestamp_opt()
insteadDateTime
from the number of non-leap seconds
since January 1, 1970 0:00:00 UTC (aka “UNIX timestamp”)
and the number of nanoseconds since the last whole non-leap second. Read moresource§fn timestamp_opt(&self, secs: i64, nsecs: u32) -> LocalResult<DateTime<Self>>
fn timestamp_opt(&self, secs: i64, nsecs: u32) -> LocalResult<DateTime<Self>>
DateTime
from the number of non-leap seconds
since January 1, 1970 0:00:00 UTC (aka “UNIX timestamp”)
and the number of nanoseconds since the last whole non-leap second. Read moresource§fn timestamp_millis(&self, millis: i64) -> DateTime<Self>
fn timestamp_millis(&self, millis: i64) -> DateTime<Self>
timestamp_millis_opt()
insteadDateTime
from the number of non-leap milliseconds
since January 1, 1970 0:00:00 UTC (aka “UNIX timestamp”). Read moresource§fn timestamp_millis_opt(&self, millis: i64) -> LocalResult<DateTime<Self>>
fn timestamp_millis_opt(&self, millis: i64) -> LocalResult<DateTime<Self>>
DateTime
from the number of non-leap milliseconds
since January 1, 1970 0:00:00 UTC (aka “UNIX timestamp”). Read moresource§fn timestamp_nanos(&self, nanos: i64) -> DateTime<Self>
fn timestamp_nanos(&self, nanos: i64) -> DateTime<Self>
DateTime
from the number of non-leap nanoseconds
since January 1, 1970 0:00:00 UTC (aka “UNIX timestamp”). Read moresource§fn timestamp_micros(&self, micros: i64) -> LocalResult<DateTime<Self>>
fn timestamp_micros(&self, micros: i64) -> LocalResult<DateTime<Self>>
DateTime
from the number of non-leap microseconds
since January 1, 1970 0:00:00 UTC (aka “UNIX timestamp”). Read moresource§fn datetime_from_str(
&self,
s: &str,
fmt: &str,
) -> Result<DateTime<Self>, ParseError>
fn datetime_from_str( &self, s: &str, fmt: &str, ) -> Result<DateTime<Self>, ParseError>
DateTime::parse_from_str
or NaiveDateTime::parse_from_str
with and_utc()
or and_local_timezone()
insteadDateTime
with the current offset. Read moresource§fn from_local_date(&self, local: &NaiveDate) -> LocalResult<Date<Self>>
fn from_local_date(&self, local: &NaiveDate) -> LocalResult<Date<Self>>
from_local_datetime()
insteadNaiveDate
to the timezone-aware Date
if possible.source§fn from_local_datetime(
&self,
local: &NaiveDateTime,
) -> LocalResult<DateTime<Self>>
fn from_local_datetime( &self, local: &NaiveDateTime, ) -> LocalResult<DateTime<Self>>
NaiveDateTime
to the timezone-aware DateTime
if possible.source§fn from_utc_date(&self, utc: &NaiveDate) -> Date<Self>
fn from_utc_date(&self, utc: &NaiveDate) -> Date<Self>
from_utc_datetime()
insteadNaiveDate
to the local time.
The UTC is continuous and thus this cannot fail (but can give the duplicate local time).source§fn from_utc_datetime(&self, utc: &NaiveDateTime) -> DateTime<Self>
fn from_utc_datetime(&self, utc: &NaiveDateTime) -> DateTime<Self>
NaiveDateTime
to the local time.
The UTC is continuous and thus this cannot fail (but can give the duplicate local time).impl Copy for Tz
impl Eq for Tz
impl StructuralPartialEq for Tz
Auto Trait Implementations§
impl Freeze for Tz
impl RefUnwindSafe for Tz
impl Send for Tz
impl Sync for Tz
impl Unpin for Tz
impl UnwindSafe for Tz
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)