Enum rrule::Tz

source ·
pub enum Tz {
    Local(Local),
    Tz(Tz),
}
Expand description

A wrapper around chrono_tz::Tz that is able to represent Local timezone also.

§Usage

use rrule::Tz;

let utc = Tz::UTC;
let local = Tz::LOCAL;
let berlin = Tz::Europe__Berlin;
// From `chrono_tz::Tz`
let berlin: Tz = chrono_tz::Tz::Europe__Berlin.into();

Variants§

§

Local(Local)

Local timezone

§

Tz(Tz)

Timezone represented by chrono_tz::Tz

Implementations§

source§

impl Tz

source

pub fn name(&self) -> &str

Name of timezone

source

pub fn is_local(&self) -> bool

Check if timezone is the Local timezone

source

pub const LOCAL: Self = _

Local timezone

source

pub const Africa__Abidjan: Self = _

source

pub const Africa__Accra: Self = _

source

pub const Africa__Addis_Ababa: Self = _

source

pub const Africa__Algiers: Self = _

source

pub const Africa__Asmara: Self = _

source

pub const Africa__Asmera: Self = _

source

pub const Africa__Bamako: Self = _

source

pub const Africa__Bangui: Self = _

source

pub const Africa__Banjul: Self = _

source

pub const Africa__Bissau: Self = _

source

pub const Africa__Blantyre: Self = _

source

pub const Africa__Brazzaville: Self = _

source

pub const Africa__Bujumbura: Self = _

source

pub const Africa__Cairo: Self = _

source

pub const Africa__Casablanca: Self = _

source

pub const Africa__Ceuta: Self = _

source

pub const Africa__Conakry: Self = _

source

pub const Africa__Dakar: Self = _

source

pub const Africa__Dar_es_Salaam: Self = _

source

pub const Africa__Djibouti: Self = _

source

pub const Africa__Douala: Self = _

source

pub const Africa__El_Aaiun: Self = _

source

pub const Africa__Freetown: Self = _

source

pub const Africa__Gaborone: Self = _

source

pub const Africa__Harare: Self = _

source

pub const Africa__Johannesburg: Self = _

source

pub const Africa__Juba: Self = _

source

pub const Africa__Kampala: Self = _

source

pub const Africa__Khartoum: Self = _

source

pub const Africa__Kigali: Self = _

source

pub const Africa__Kinshasa: Self = _

source

pub const Africa__Lagos: Self = _

source

pub const Africa__Libreville: Self = _

source

pub const Africa__Lome: Self = _

source

pub const Africa__Luanda: Self = _

source

pub const Africa__Lubumbashi: Self = _

source

pub const Africa__Lusaka: Self = _

source

pub const Africa__Malabo: Self = _

source

pub const Africa__Maputo: Self = _

source

pub const Africa__Maseru: Self = _

source

pub const Africa__Mbabane: Self = _

source

pub const Africa__Mogadishu: Self = _

source

pub const Africa__Monrovia: Self = _

source

pub const Africa__Nairobi: Self = _

source

pub const Africa__Ndjamena: Self = _

source

pub const Africa__Niamey: Self = _

source

pub const Africa__Nouakchott: Self = _

source

pub const Africa__Ouagadougou: Self = _

source

pub const Africa__PortoNovo: Self = _

source

pub const Africa__Sao_Tome: Self = _

source

pub const Africa__Timbuktu: Self = _

source

pub const Africa__Tripoli: Self = _

source

pub const Africa__Tunis: Self = _

source

pub const Africa__Windhoek: Self = _

source

pub const America__Adak: Self = _

source

pub const America__Anchorage: Self = _

source

pub const America__Anguilla: Self = _

source

pub const America__Antigua: Self = _

source

pub const America__Araguaina: Self = _

source

pub const America__Argentina__Buenos_Aires: Self = _

source

pub const America__Argentina__Catamarca: Self = _

source

pub const America__Argentina__ComodRivadavia: Self = _

source

pub const America__Argentina__Cordoba: Self = _

source

pub const America__Argentina__Jujuy: Self = _

source

pub const America__Argentina__La_Rioja: Self = _

source

pub const America__Argentina__Mendoza: Self = _

source

pub const America__Argentina__Rio_Gallegos: Self = _

source

pub const America__Argentina__Salta: Self = _

source

pub const America__Argentina__San_Juan: Self = _

source

pub const America__Argentina__San_Luis: Self = _

source

pub const America__Argentina__Tucuman: Self = _

source

pub const America__Argentina__Ushuaia: Self = _

source

pub const America__Aruba: Self = _

source

pub const America__Asuncion: Self = _

source

pub const America__Atikokan: Self = _

source

pub const America__Atka: Self = _

source

pub const America__Bahia: Self = _

source

pub const America__Bahia_Banderas: Self = _

source

pub const America__Barbados: Self = _

source

pub const America__Belem: Self = _

source

pub const America__Belize: Self = _

source

pub const America__BlancSablon: Self = _

source

pub const America__Boa_Vista: Self = _

source

pub const America__Bogota: Self = _

source

pub const America__Boise: Self = _

source

pub const America__Buenos_Aires: Self = _

source

pub const America__Cambridge_Bay: Self = _

source

pub const America__Campo_Grande: Self = _

source

pub const America__Cancun: Self = _

source

pub const America__Caracas: Self = _

source

pub const America__Catamarca: Self = _

source

pub const America__Cayenne: Self = _

source

pub const America__Cayman: Self = _

source

pub const America__Chicago: Self = _

source

pub const America__Chihuahua: Self = _

source

pub const America__Coral_Harbour: Self = _

source

pub const America__Cordoba: Self = _

source

pub const America__Costa_Rica: Self = _

source

pub const America__Creston: Self = _

source

pub const America__Cuiaba: Self = _

source

pub const America__Curacao: Self = _

source

pub const America__Danmarkshavn: Self = _

source

pub const America__Dawson: Self = _

source

pub const America__Dawson_Creek: Self = _

source

pub const America__Denver: Self = _

source

pub const America__Detroit: Self = _

source

pub const America__Dominica: Self = _

source

pub const America__Edmonton: Self = _

source

pub const America__Eirunepe: Self = _

source

pub const America__El_Salvador: Self = _

source

pub const America__Ensenada: Self = _

source

pub const America__Fort_Nelson: Self = _

source

pub const America__Fort_Wayne: Self = _

source

pub const America__Fortaleza: Self = _

source

pub const America__Glace_Bay: Self = _

source

pub const America__Godthab: Self = _

source

pub const America__Goose_Bay: Self = _

source

pub const America__Grand_Turk: Self = _

source

pub const America__Grenada: Self = _

source

pub const America__Guadeloupe: Self = _

source

pub const America__Guatemala: Self = _

source

pub const America__Guayaquil: Self = _

source

pub const America__Guyana: Self = _

source

pub const America__Halifax: Self = _

source

pub const America__Havana: Self = _

source

pub const America__Hermosillo: Self = _

source

pub const America__Indiana__Indianapolis: Self = _

source

pub const America__Indiana__Knox: Self = _

source

pub const America__Indiana__Marengo: Self = _

source

pub const America__Indiana__Petersburg: Self = _

source

pub const America__Indiana__Tell_City: Self = _

source

pub const America__Indiana__Vevay: Self = _

source

pub const America__Indiana__Vincennes: Self = _

source

pub const America__Indiana__Winamac: Self = _

source

pub const America__Indianapolis: Self = _

source

pub const America__Inuvik: Self = _

source

pub const America__Iqaluit: Self = _

source

pub const America__Jamaica: Self = _

source

pub const America__Jujuy: Self = _

source

pub const America__Juneau: Self = _

source

pub const America__Kentucky__Louisville: Self = _

source

pub const America__Kentucky__Monticello: Self = _

source

pub const America__Knox_IN: Self = _

source

pub const America__Kralendijk: Self = _

source

pub const America__La_Paz: Self = _

source

pub const America__Lima: Self = _

source

pub const America__Los_Angeles: Self = _

source

pub const America__Louisville: Self = _

source

pub const America__Lower_Princes: Self = _

source

pub const America__Maceio: Self = _

source

pub const America__Managua: Self = _

source

pub const America__Manaus: Self = _

source

pub const America__Marigot: Self = _

source

pub const America__Martinique: Self = _

source

pub const America__Matamoros: Self = _

source

pub const America__Mazatlan: Self = _

source

pub const America__Mendoza: Self = _

source

pub const America__Menominee: Self = _

source

pub const America__Merida: Self = _

source

pub const America__Metlakatla: Self = _

source

pub const America__Mexico_City: Self = _

source

pub const America__Miquelon: Self = _

source

pub const America__Moncton: Self = _

source

pub const America__Monterrey: Self = _

source

pub const America__Montevideo: Self = _

source

pub const America__Montreal: Self = _

source

pub const America__Montserrat: Self = _

source

pub const America__Nassau: Self = _

source

pub const America__New_York: Self = _

source

pub const America__Nipigon: Self = _

source

pub const America__Nome: Self = _

source

pub const America__Noronha: Self = _

source

pub const America__North_Dakota__Beulah: Self = _

source

pub const America__North_Dakota__Center: Self = _

source

pub const America__North_Dakota__New_Salem: Self = _

source

pub const America__Nuuk: Self = _

source

pub const America__Ojinaga: Self = _

source

pub const America__Panama: Self = _

source

pub const America__Pangnirtung: Self = _

source

pub const America__Paramaribo: Self = _

source

pub const America__Phoenix: Self = _

source

pub const America__PortauPrince: Self = _

source

pub const America__Port_of_Spain: Self = _

source

pub const America__Porto_Acre: Self = _

source

pub const America__Porto_Velho: Self = _

source

pub const America__Puerto_Rico: Self = _

source

pub const America__Punta_Arenas: Self = _

source

pub const America__Rainy_River: Self = _

source

pub const America__Rankin_Inlet: Self = _

source

pub const America__Recife: Self = _

source

pub const America__Regina: Self = _

source

pub const America__Resolute: Self = _

source

pub const America__Rio_Branco: Self = _

source

pub const America__Rosario: Self = _

source

pub const America__Santa_Isabel: Self = _

source

pub const America__Santarem: Self = _

source

pub const America__Santiago: Self = _

source

pub const America__Santo_Domingo: Self = _

source

pub const America__Sao_Paulo: Self = _

source

pub const America__Scoresbysund: Self = _

source

pub const America__Shiprock: Self = _

source

pub const America__Sitka: Self = _

source

pub const America__St_Barthelemy: Self = _

source

pub const America__St_Johns: Self = _

source

pub const America__St_Kitts: Self = _

source

pub const America__St_Lucia: Self = _

source

pub const America__St_Thomas: Self = _

source

pub const America__St_Vincent: Self = _

source

pub const America__Swift_Current: Self = _

source

pub const America__Tegucigalpa: Self = _

source

pub const America__Thule: Self = _

source

pub const America__Thunder_Bay: Self = _

source

pub const America__Tijuana: Self = _

source

pub const America__Toronto: Self = _

source

pub const America__Tortola: Self = _

source

pub const America__Vancouver: Self = _

source

pub const America__Virgin: Self = _

source

pub const America__Whitehorse: Self = _

source

pub const America__Winnipeg: Self = _

source

pub const America__Yakutat: Self = _

source

pub const America__Yellowknife: Self = _

source

pub const Antarctica__Casey: Self = _

source

pub const Antarctica__Davis: Self = _

source

pub const Antarctica__DumontDUrville: Self = _

source

pub const Antarctica__Macquarie: Self = _

source

pub const Antarctica__Mawson: Self = _

source

pub const Antarctica__McMurdo: Self = _

source

pub const Antarctica__Palmer: Self = _

source

pub const Antarctica__Rothera: Self = _

source

pub const Antarctica__South_Pole: Self = _

source

pub const Antarctica__Syowa: Self = _

source

pub const Antarctica__Troll: Self = _

source

pub const Antarctica__Vostok: Self = _

source

pub const Arctic__Longyearbyen: Self = _

source

pub const Asia__Aden: Self = _

source

pub const Asia__Almaty: Self = _

source

pub const Asia__Amman: Self = _

source

pub const Asia__Anadyr: Self = _

source

pub const Asia__Aqtau: Self = _

source

pub const Asia__Aqtobe: Self = _

source

pub const Asia__Ashgabat: Self = _

source

pub const Asia__Ashkhabad: Self = _

source

pub const Asia__Atyrau: Self = _

source

pub const Asia__Baghdad: Self = _

source

pub const Asia__Bahrain: Self = _

source

pub const Asia__Baku: Self = _

source

pub const Asia__Bangkok: Self = _

source

pub const Asia__Barnaul: Self = _

source

pub const Asia__Beirut: Self = _

source

pub const Asia__Bishkek: Self = _

source

pub const Asia__Brunei: Self = _

source

pub const Asia__Calcutta: Self = _

source

pub const Asia__Chita: Self = _

source

pub const Asia__Choibalsan: Self = _

source

pub const Asia__Chongqing: Self = _

source

pub const Asia__Chungking: Self = _

source

pub const Asia__Colombo: Self = _

source

pub const Asia__Dacca: Self = _

source

pub const Asia__Damascus: Self = _

source

pub const Asia__Dhaka: Self = _

source

pub const Asia__Dili: Self = _

source

pub const Asia__Dubai: Self = _

source

pub const Asia__Dushanbe: Self = _

source

pub const Asia__Famagusta: Self = _

source

pub const Asia__Gaza: Self = _

source

pub const Asia__Harbin: Self = _

source

pub const Asia__Hebron: Self = _

source

pub const Asia__Ho_Chi_Minh: Self = _

source

pub const Asia__Hong_Kong: Self = _

source

pub const Asia__Hovd: Self = _

source

pub const Asia__Irkutsk: Self = _

source

pub const Asia__Istanbul: Self = _

source

pub const Asia__Jakarta: Self = _

source

pub const Asia__Jayapura: Self = _

source

pub const Asia__Jerusalem: Self = _

source

pub const Asia__Kabul: Self = _

source

pub const Asia__Kamchatka: Self = _

source

pub const Asia__Karachi: Self = _

source

pub const Asia__Kashgar: Self = _

source

pub const Asia__Kathmandu: Self = _

source

pub const Asia__Katmandu: Self = _

source

pub const Asia__Khandyga: Self = _

source

pub const Asia__Kolkata: Self = _

source

pub const Asia__Krasnoyarsk: Self = _

source

pub const Asia__Kuala_Lumpur: Self = _

source

pub const Asia__Kuching: Self = _

source

pub const Asia__Kuwait: Self = _

source

pub const Asia__Macao: Self = _

source

pub const Asia__Macau: Self = _

source

pub const Asia__Magadan: Self = _

source

pub const Asia__Makassar: Self = _

source

pub const Asia__Manila: Self = _

source

pub const Asia__Muscat: Self = _

source

pub const Asia__Nicosia: Self = _

source

pub const Asia__Novokuznetsk: Self = _

source

pub const Asia__Novosibirsk: Self = _

source

pub const Asia__Omsk: Self = _

source

pub const Asia__Oral: Self = _

source

pub const Asia__Phnom_Penh: Self = _

source

pub const Asia__Pontianak: Self = _

source

pub const Asia__Pyongyang: Self = _

source

pub const Asia__Qatar: Self = _

source

pub const Asia__Qostanay: Self = _

source

pub const Asia__Qyzylorda: Self = _

source

pub const Asia__Rangoon: Self = _

source

pub const Asia__Riyadh: Self = _

source

pub const Asia__Saigon: Self = _

source

pub const Asia__Sakhalin: Self = _

source

pub const Asia__Samarkand: Self = _

source

pub const Asia__Seoul: Self = _

source

pub const Asia__Shanghai: Self = _

source

pub const Asia__Singapore: Self = _

source

pub const Asia__Srednekolymsk: Self = _

source

pub const Asia__Taipei: Self = _

source

pub const Asia__Tashkent: Self = _

source

pub const Asia__Tbilisi: Self = _

source

pub const Asia__Tehran: Self = _

source

pub const Asia__Tel_Aviv: Self = _

source

pub const Asia__Thimbu: Self = _

source

pub const Asia__Thimphu: Self = _

source

pub const Asia__Tokyo: Self = _

source

pub const Asia__Tomsk: Self = _

source

pub const Asia__Ujung_Pandang: Self = _

source

pub const Asia__Ulaanbaatar: Self = _

source

pub const Asia__Ulan_Bator: Self = _

source

pub const Asia__Urumqi: Self = _

source

pub const Asia__UstNera: Self = _

source

pub const Asia__Vientiane: Self = _

source

pub const Asia__Vladivostok: Self = _

source

pub const Asia__Yakutsk: Self = _

source

pub const Asia__Yangon: Self = _

source

pub const Asia__Yekaterinburg: Self = _

source

pub const Asia__Yerevan: Self = _

source

pub const Atlantic__Azores: Self = _

source

pub const Atlantic__Bermuda: Self = _

source

pub const Atlantic__Canary: Self = _

source

pub const Atlantic__Cape_Verde: Self = _

source

pub const Atlantic__Faeroe: Self = _

source

pub const Atlantic__Faroe: Self = _

source

pub const Atlantic__Jan_Mayen: Self = _

source

pub const Atlantic__Madeira: Self = _

source

pub const Atlantic__Reykjavik: Self = _

source

pub const Atlantic__South_Georgia: Self = _

source

pub const Atlantic__St_Helena: Self = _

source

pub const Atlantic__Stanley: Self = _

source

pub const Australia__ACT: Self = _

source

pub const Australia__Adelaide: Self = _

source

pub const Australia__Brisbane: Self = _

source

pub const Australia__Broken_Hill: Self = _

source

pub const Australia__Canberra: Self = _

source

pub const Australia__Currie: Self = _

source

pub const Australia__Darwin: Self = _

source

pub const Australia__Eucla: Self = _

source

pub const Australia__Hobart: Self = _

source

pub const Australia__LHI: Self = _

source

pub const Australia__Lindeman: Self = _

source

pub const Australia__Lord_Howe: Self = _

source

pub const Australia__Melbourne: Self = _

source

pub const Australia__NSW: Self = _

source

pub const Australia__North: Self = _

source

pub const Australia__Perth: Self = _

source

pub const Australia__Queensland: Self = _

source

pub const Australia__South: Self = _

source

pub const Australia__Sydney: Self = _

source

pub const Australia__Tasmania: Self = _

source

pub const Australia__Victoria: Self = _

source

pub const Australia__West: Self = _

source

pub const Australia__Yancowinna: Self = _

source

pub const Brazil__Acre: Self = _

source

pub const Brazil__DeNoronha: Self = _

source

pub const Brazil__East: Self = _

source

pub const Brazil__West: Self = _

source

pub const CET: Self = _

source

pub const CST6CDT: Self = _

source

pub const Canada__Atlantic: Self = _

source

pub const Canada__Central: Self = _

source

pub const Canada__Eastern: Self = _

source

pub const Canada__Mountain: Self = _

source

pub const Canada__Newfoundland: Self = _

source

pub const Canada__Pacific: Self = _

source

pub const Canada__Saskatchewan: Self = _

source

pub const Canada__Yukon: Self = _

source

pub const Chile__Continental: Self = _

source

pub const Chile__EasterIsland: Self = _

source

pub const Cuba: Self = _

source

pub const EET: Self = _

source

pub const EST: Self = _

source

pub const EST5EDT: Self = _

source

pub const Egypt: Self = _

source

pub const Eire: Self = _

source

pub const Etc__GMT: Self = _

source

pub const Etc__GMTPlus0: Self = _

source

pub const Etc__GMTPlus1: Self = _

source

pub const Etc__GMTPlus10: Self = _

source

pub const Etc__GMTPlus11: Self = _

source

pub const Etc__GMTPlus12: Self = _

source

pub const Etc__GMTPlus2: Self = _

source

pub const Etc__GMTPlus3: Self = _

source

pub const Etc__GMTPlus4: Self = _

source

pub const Etc__GMTPlus5: Self = _

source

pub const Etc__GMTPlus6: Self = _

source

pub const Etc__GMTPlus7: Self = _

source

pub const Etc__GMTPlus8: Self = _

source

pub const Etc__GMTPlus9: Self = _

source

pub const Etc__GMTMinus0: Self = _

source

pub const Etc__GMTMinus1: Self = _

source

pub const Etc__GMTMinus10: Self = _

source

pub const Etc__GMTMinus11: Self = _

source

pub const Etc__GMTMinus12: Self = _

source

pub const Etc__GMTMinus13: Self = _

source

pub const Etc__GMTMinus14: Self = _

source

pub const Etc__GMTMinus2: Self = _

source

pub const Etc__GMTMinus3: Self = _

source

pub const Etc__GMTMinus4: Self = _

source

pub const Etc__GMTMinus5: Self = _

source

pub const Etc__GMTMinus6: Self = _

source

pub const Etc__GMTMinus7: Self = _

source

pub const Etc__GMTMinus8: Self = _

source

pub const Etc__GMTMinus9: Self = _

source

pub const Etc__GMT0: Self = _

source

pub const Etc__Greenwich: Self = _

source

pub const Etc__UCT: Self = _

source

pub const Etc__UTC: Self = _

source

pub const Etc__Universal: Self = _

source

pub const Etc__Zulu: Self = _

source

pub const Europe__Amsterdam: Self = _

source

pub const Europe__Andorra: Self = _

source

pub const Europe__Astrakhan: Self = _

source

pub const Europe__Athens: Self = _

source

pub const Europe__Belfast: Self = _

source

pub const Europe__Belgrade: Self = _

source

pub const Europe__Berlin: Self = _

source

pub const Europe__Bratislava: Self = _

source

pub const Europe__Brussels: Self = _

source

pub const Europe__Bucharest: Self = _

source

pub const Europe__Budapest: Self = _

source

pub const Europe__Busingen: Self = _

source

pub const Europe__Chisinau: Self = _

source

pub const Europe__Copenhagen: Self = _

source

pub const Europe__Dublin: Self = _

source

pub const Europe__Gibraltar: Self = _

source

pub const Europe__Guernsey: Self = _

source

pub const Europe__Helsinki: Self = _

source

pub const Europe__Isle_of_Man: Self = _

source

pub const Europe__Istanbul: Self = _

source

pub const Europe__Jersey: Self = _

source

pub const Europe__Kaliningrad: Self = _

source

pub const Europe__Kiev: Self = _

source

pub const Europe__Kirov: Self = _

source

pub const Europe__Lisbon: Self = _

source

pub const Europe__Ljubljana: Self = _

source

pub const Europe__London: Self = _

source

pub const Europe__Luxembourg: Self = _

source

pub const Europe__Madrid: Self = _

source

pub const Europe__Malta: Self = _

source

pub const Europe__Mariehamn: Self = _

source

pub const Europe__Minsk: Self = _

source

pub const Europe__Monaco: Self = _

source

pub const Europe__Moscow: Self = _

source

pub const Europe__Nicosia: Self = _

source

pub const Europe__Oslo: Self = _

source

pub const Europe__Paris: Self = _

source

pub const Europe__Podgorica: Self = _

source

pub const Europe__Prague: Self = _

source

pub const Europe__Riga: Self = _

source

pub const Europe__Rome: Self = _

source

pub const Europe__Samara: Self = _

source

pub const Europe__San_Marino: Self = _

source

pub const Europe__Sarajevo: Self = _

source

pub const Europe__Saratov: Self = _

source

pub const Europe__Simferopol: Self = _

source

pub const Europe__Skopje: Self = _

source

pub const Europe__Sofia: Self = _

source

pub const Europe__Stockholm: Self = _

source

pub const Europe__Tallinn: Self = _

source

pub const Europe__Tirane: Self = _

source

pub const Europe__Tiraspol: Self = _

source

pub const Europe__Ulyanovsk: Self = _

source

pub const Europe__Uzhgorod: Self = _

source

pub const Europe__Vaduz: Self = _

source

pub const Europe__Vatican: Self = _

source

pub const Europe__Vienna: Self = _

source

pub const Europe__Vilnius: Self = _

source

pub const Europe__Volgograd: Self = _

source

pub const Europe__Warsaw: Self = _

source

pub const Europe__Zagreb: Self = _

source

pub const Europe__Zaporozhye: Self = _

source

pub const Europe__Zurich: Self = _

source

pub const GB: Self = _

source

pub const GBEire: Self = _

source

pub const GMT: Self = _

source

pub const GMTPlus0: Self = _

source

pub const GMTMinus0: Self = _

source

pub const GMT0: Self = _

source

pub const Greenwich: Self = _

source

pub const HST: Self = _

source

pub const Hongkong: Self = _

source

pub const Iceland: Self = _

source

pub const Indian__Antananarivo: Self = _

source

pub const Indian__Chagos: Self = _

source

pub const Indian__Christmas: Self = _

source

pub const Indian__Cocos: Self = _

source

pub const Indian__Comoro: Self = _

source

pub const Indian__Kerguelen: Self = _

source

pub const Indian__Mahe: Self = _

source

pub const Indian__Maldives: Self = _

source

pub const Indian__Mauritius: Self = _

source

pub const Indian__Mayotte: Self = _

source

pub const Indian__Reunion: Self = _

source

pub const Iran: Self = _

source

pub const Israel: Self = _

source

pub const Jamaica: Self = _

source

pub const Japan: Self = _

source

pub const Kwajalein: Self = _

source

pub const Libya: Self = _

source

pub const MET: Self = _

source

pub const MST: Self = _

source

pub const MST7MDT: Self = _

source

pub const Mexico__BajaNorte: Self = _

source

pub const Mexico__BajaSur: Self = _

source

pub const Mexico__General: Self = _

source

pub const NZ: Self = _

source

pub const NZCHAT: Self = _

source

pub const Navajo: Self = _

source

pub const PRC: Self = _

source

pub const PST8PDT: Self = _

source

pub const Pacific__Apia: Self = _

source

pub const Pacific__Auckland: Self = _

source

pub const Pacific__Bougainville: Self = _

source

pub const Pacific__Chatham: Self = _

source

pub const Pacific__Chuuk: Self = _

source

pub const Pacific__Easter: Self = _

source

pub const Pacific__Efate: Self = _

source

pub const Pacific__Enderbury: Self = _

source

pub const Pacific__Fakaofo: Self = _

source

pub const Pacific__Fiji: Self = _

source

pub const Pacific__Funafuti: Self = _

source

pub const Pacific__Galapagos: Self = _

source

pub const Pacific__Gambier: Self = _

source

pub const Pacific__Guadalcanal: Self = _

source

pub const Pacific__Guam: Self = _

source

pub const Pacific__Honolulu: Self = _

source

pub const Pacific__Johnston: Self = _

source

pub const Pacific__Kanton: Self = _

source

pub const Pacific__Kiritimati: Self = _

source

pub const Pacific__Kosrae: Self = _

source

pub const Pacific__Kwajalein: Self = _

source

pub const Pacific__Majuro: Self = _

source

pub const Pacific__Marquesas: Self = _

source

pub const Pacific__Midway: Self = _

source

pub const Pacific__Nauru: Self = _

source

pub const Pacific__Niue: Self = _

source

pub const Pacific__Norfolk: Self = _

source

pub const Pacific__Noumea: Self = _

source

pub const Pacific__Pago_Pago: Self = _

source

pub const Pacific__Palau: Self = _

source

pub const Pacific__Pitcairn: Self = _

source

pub const Pacific__Pohnpei: Self = _

source

pub const Pacific__Ponape: Self = _

source

pub const Pacific__Port_Moresby: Self = _

source

pub const Pacific__Rarotonga: Self = _

source

pub const Pacific__Saipan: Self = _

source

pub const Pacific__Samoa: Self = _

source

pub const Pacific__Tahiti: Self = _

source

pub const Pacific__Tarawa: Self = _

source

pub const Pacific__Tongatapu: Self = _

source

pub const Pacific__Truk: Self = _

source

pub const Pacific__Wake: Self = _

source

pub const Pacific__Wallis: Self = _

source

pub const Pacific__Yap: Self = _

source

pub const Poland: Self = _

source

pub const Portugal: Self = _

source

pub const ROC: Self = _

source

pub const ROK: Self = _

source

pub const Singapore: Self = _

source

pub const Turkey: Self = _

source

pub const UCT: Self = _

source

pub const US__Alaska: Self = _

source

pub const US__Aleutian: Self = _

source

pub const US__Arizona: Self = _

source

pub const US__Central: Self = _

source

pub const US__EastIndiana: Self = _

source

pub const US__Eastern: Self = _

source

pub const US__Hawaii: Self = _

source

pub const US__IndianaStarke: Self = _

source

pub const US__Michigan: Self = _

source

pub const US__Mountain: Self = _

source

pub const US__Pacific: Self = _

source

pub const US__Samoa: Self = _

source

pub const UTC: Self = _

source

pub const Universal: Self = _

source

pub const WSU: Self = _

source

pub const WET: Self = _

source

pub const Zulu: Self = _

Trait Implementations§

source§

impl Clone for Tz

source§

fn clone(&self) -> Tz

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Tz

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for Tz

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<Local> for Tz

source§

fn from(tz: Local) -> Self

Converts to this type from the input type.
source§

impl From<Tz> for Tz

source§

fn from(tz: Tz) -> Self

Converts to this type from the input type.
source§

impl From<Utc> for Tz

source§

fn from(_tz: Utc) -> Self

Converts to this type from the input type.
source§

impl PartialEq for Tz

source§

fn eq(&self, other: &Self) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl TimeZone for Tz

§

type Offset = RRuleOffset

An associated offset type. This type is used to store the actual offset in date and time types. The original TimeZone value can be recovered via TimeZone::from_offset.
source§

fn from_offset(offset: &Self::Offset) -> Self

Reconstructs the time zone from the offset.
source§

fn offset_from_local_date(&self, local: &NaiveDate) -> LocalResult<Self::Offset>

Creates the offset(s) for given local NaiveDate if possible.
source§

fn offset_from_local_datetime( &self, local: &NaiveDateTime ) -> LocalResult<Self::Offset>

Creates the offset(s) for given local NaiveDateTime if possible.
source§

fn offset_from_utc_date(&self, utc: &NaiveDate) -> Self::Offset

Creates the offset for given UTC NaiveDate. This cannot fail.
source§

fn offset_from_utc_datetime(&self, utc: &NaiveDateTime) -> Self::Offset

Creates the offset for given UTC 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>>

Make a new DateTime from year, month, day, time components and current time zone. Read more
source§

fn ymd(&self, year: i32, month: u32, day: u32) -> Date<Self>

👎Deprecated since 0.4.23: use with_ymd_and_hms() instead
Makes a new Date from year, month, day and the current time zone. This assumes the proleptic Gregorian calendar, with the year 0 being 1 BCE. Read more
source§

fn ymd_opt(&self, year: i32, month: u32, day: u32) -> LocalResult<Date<Self>>

👎Deprecated since 0.4.23: use with_ymd_and_hms() instead
Makes a new Date from year, month, day and the current time zone. This assumes the proleptic Gregorian calendar, with the year 0 being 1 BCE. Read more
source§

fn yo(&self, year: i32, ordinal: u32) -> Date<Self>

👎Deprecated since 0.4.23: use from_local_datetime() with a NaiveDateTime instead
Makes a new Date 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 more
source§

fn yo_opt(&self, year: i32, ordinal: u32) -> LocalResult<Date<Self>>

👎Deprecated since 0.4.23: use from_local_datetime() with a NaiveDateTime instead
Makes a new Date 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 more
source§

fn isoywd(&self, year: i32, week: u32, weekday: Weekday) -> Date<Self>

👎Deprecated since 0.4.23: use from_local_datetime() with a NaiveDateTime instead
Makes a new Date 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 more
source§

fn isoywd_opt( &self, year: i32, week: u32, weekday: Weekday ) -> LocalResult<Date<Self>>

👎Deprecated since 0.4.23: use from_local_datetime() with a NaiveDateTime instead
Makes a new Date 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 more
source§

fn timestamp(&self, secs: i64, nsecs: u32) -> DateTime<Self>

👎Deprecated since 0.4.23: use timestamp_opt() instead
Makes a new 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 more
source§

fn timestamp_opt(&self, secs: i64, nsecs: u32) -> LocalResult<DateTime<Self>>

Makes a new 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 more
source§

fn timestamp_millis(&self, millis: i64) -> DateTime<Self>

👎Deprecated since 0.4.23: use timestamp_millis_opt() instead
Makes a new DateTime from the number of non-leap milliseconds since January 1, 1970 0:00:00 UTC (aka “UNIX timestamp”). Read more
source§

fn timestamp_millis_opt(&self, millis: i64) -> LocalResult<DateTime<Self>>

Makes a new DateTime from the number of non-leap milliseconds since January 1, 1970 0:00:00 UTC (aka “UNIX timestamp”). Read more
source§

fn timestamp_nanos(&self, nanos: i64) -> DateTime<Self>

Makes a new DateTime from the number of non-leap nanoseconds since January 1, 1970 0:00:00 UTC (aka “UNIX timestamp”). Read more
source§

fn timestamp_micros(&self, micros: i64) -> LocalResult<DateTime<Self>>

Makes a new DateTime from the number of non-leap microseconds since January 1, 1970 0:00:00 UTC (aka “UNIX timestamp”). Read more
source§

fn datetime_from_str( &self, s: &str, fmt: &str ) -> Result<DateTime<Self>, ParseError>

👎Deprecated since 0.4.29: use DateTime::parse_from_str or NaiveDateTime::parse_from_str with and_utc() or and_local_timezone() instead
Parses a string with the specified format string and returns a DateTime with the current offset. Read more
source§

fn from_local_date(&self, local: &NaiveDate) -> LocalResult<Date<Self>>

👎Deprecated since 0.4.23: use from_local_datetime() instead
Converts the local NaiveDate to the timezone-aware Date if possible.
source§

fn from_local_datetime( &self, local: &NaiveDateTime ) -> LocalResult<DateTime<Self>>

Converts the local NaiveDateTime to the timezone-aware DateTime if possible.
source§

fn from_utc_date(&self, utc: &NaiveDate) -> Date<Self>

👎Deprecated since 0.4.23: use from_utc_datetime() instead
Converts the UTC NaiveDate 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>

Converts the UTC NaiveDateTime to the local time. The UTC is continuous and thus this cannot fail (but can give the duplicate local time).
source§

impl Copy 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> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.