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§
Implementations§
source§impl Tz
impl Tz
pub const Africa__Abidjan: Self = _
pub const Africa__Accra: Self = _
pub const Africa__Addis_Ababa: Self = _
pub const Africa__Algiers: Self = _
pub const Africa__Asmara: Self = _
pub const Africa__Asmera: Self = _
pub const Africa__Bamako: Self = _
pub const Africa__Bangui: Self = _
pub const Africa__Banjul: Self = _
pub const Africa__Bissau: Self = _
pub const Africa__Blantyre: Self = _
pub const Africa__Brazzaville: Self = _
pub const Africa__Bujumbura: Self = _
pub const Africa__Cairo: Self = _
pub const Africa__Casablanca: Self = _
pub const Africa__Ceuta: Self = _
pub const Africa__Conakry: Self = _
pub const Africa__Dakar: Self = _
pub const Africa__Dar_es_Salaam: Self = _
pub const Africa__Djibouti: Self = _
pub const Africa__Douala: Self = _
pub const Africa__El_Aaiun: Self = _
pub const Africa__Freetown: Self = _
pub const Africa__Gaborone: Self = _
pub const Africa__Harare: Self = _
pub const Africa__Johannesburg: Self = _
pub const Africa__Juba: Self = _
pub const Africa__Kampala: Self = _
pub const Africa__Khartoum: Self = _
pub const Africa__Kigali: Self = _
pub const Africa__Kinshasa: Self = _
pub const Africa__Lagos: Self = _
pub const Africa__Libreville: Self = _
pub const Africa__Lome: Self = _
pub const Africa__Luanda: Self = _
pub const Africa__Lubumbashi: Self = _
pub const Africa__Lusaka: Self = _
pub const Africa__Malabo: Self = _
pub const Africa__Maputo: Self = _
pub const Africa__Maseru: Self = _
pub const Africa__Mbabane: Self = _
pub const Africa__Mogadishu: Self = _
pub const Africa__Monrovia: Self = _
pub const Africa__Nairobi: Self = _
pub const Africa__Ndjamena: Self = _
pub const Africa__Niamey: Self = _
pub const Africa__Nouakchott: Self = _
pub const Africa__Ouagadougou: Self = _
pub const Africa__PortoNovo: Self = _
pub const Africa__Sao_Tome: Self = _
pub const Africa__Timbuktu: Self = _
pub const Africa__Tripoli: Self = _
pub const Africa__Tunis: Self = _
pub const Africa__Windhoek: Self = _
pub const America__Adak: Self = _
pub const America__Anchorage: Self = _
pub const America__Anguilla: Self = _
pub const America__Antigua: Self = _
pub const America__Araguaina: Self = _
pub const America__Argentina__Buenos_Aires: Self = _
pub const America__Argentina__Catamarca: Self = _
pub const America__Argentina__ComodRivadavia: Self = _
pub const America__Argentina__Cordoba: Self = _
pub const America__Argentina__Jujuy: Self = _
pub const America__Argentina__La_Rioja: Self = _
pub const America__Argentina__Mendoza: Self = _
pub const America__Argentina__Rio_Gallegos: Self = _
pub const America__Argentina__Salta: Self = _
pub const America__Argentina__San_Juan: Self = _
pub const America__Argentina__San_Luis: Self = _
pub const America__Argentina__Tucuman: Self = _
pub const America__Argentina__Ushuaia: Self = _
pub const America__Aruba: Self = _
pub const America__Asuncion: Self = _
pub const America__Atikokan: Self = _
pub const America__Atka: Self = _
pub const America__Bahia: Self = _
pub const America__Bahia_Banderas: Self = _
pub const America__Barbados: Self = _
pub const America__Belem: Self = _
pub const America__Belize: Self = _
pub const America__BlancSablon: Self = _
pub const America__Boa_Vista: Self = _
pub const America__Bogota: Self = _
pub const America__Boise: Self = _
pub const America__Buenos_Aires: Self = _
pub const America__Cambridge_Bay: Self = _
pub const America__Campo_Grande: Self = _
pub const America__Cancun: Self = _
pub const America__Caracas: Self = _
pub const America__Catamarca: Self = _
pub const America__Cayenne: Self = _
pub const America__Cayman: Self = _
pub const America__Chicago: Self = _
pub const America__Chihuahua: Self = _
pub const America__Coral_Harbour: Self = _
pub const America__Cordoba: Self = _
pub const America__Costa_Rica: Self = _
pub const America__Creston: Self = _
pub const America__Cuiaba: Self = _
pub const America__Curacao: Self = _
pub const America__Danmarkshavn: Self = _
pub const America__Dawson: Self = _
pub const America__Dawson_Creek: Self = _
pub const America__Denver: Self = _
pub const America__Detroit: Self = _
pub const America__Dominica: Self = _
pub const America__Edmonton: Self = _
pub const America__Eirunepe: Self = _
pub const America__El_Salvador: Self = _
pub const America__Ensenada: Self = _
pub const America__Fort_Nelson: Self = _
pub const America__Fort_Wayne: Self = _
pub const America__Fortaleza: Self = _
pub const America__Glace_Bay: Self = _
pub const America__Godthab: Self = _
pub const America__Goose_Bay: Self = _
pub const America__Grand_Turk: Self = _
pub const America__Grenada: Self = _
pub const America__Guadeloupe: Self = _
pub const America__Guatemala: Self = _
pub const America__Guayaquil: Self = _
pub const America__Guyana: Self = _
pub const America__Halifax: Self = _
pub const America__Havana: Self = _
pub const America__Hermosillo: Self = _
pub const America__Indiana__Indianapolis: Self = _
pub const America__Indiana__Knox: Self = _
pub const America__Indiana__Marengo: Self = _
pub const America__Indiana__Petersburg: Self = _
pub const America__Indiana__Tell_City: Self = _
pub const America__Indiana__Vevay: Self = _
pub const America__Indiana__Vincennes: Self = _
pub const America__Indiana__Winamac: Self = _
pub const America__Indianapolis: Self = _
pub const America__Inuvik: Self = _
pub const America__Iqaluit: Self = _
pub const America__Jamaica: Self = _
pub const America__Jujuy: Self = _
pub const America__Juneau: Self = _
pub const America__Kentucky__Louisville: Self = _
pub const America__Kentucky__Monticello: Self = _
pub const America__Knox_IN: Self = _
pub const America__Kralendijk: Self = _
pub const America__La_Paz: Self = _
pub const America__Lima: Self = _
pub const America__Los_Angeles: Self = _
pub const America__Louisville: Self = _
pub const America__Lower_Princes: Self = _
pub const America__Maceio: Self = _
pub const America__Managua: Self = _
pub const America__Manaus: Self = _
pub const America__Marigot: Self = _
pub const America__Martinique: Self = _
pub const America__Matamoros: Self = _
pub const America__Mazatlan: Self = _
pub const America__Mendoza: Self = _
pub const America__Menominee: Self = _
pub const America__Merida: Self = _
pub const America__Metlakatla: Self = _
pub const America__Mexico_City: Self = _
pub const America__Miquelon: Self = _
pub const America__Moncton: Self = _
pub const America__Monterrey: Self = _
pub const America__Montevideo: Self = _
pub const America__Montreal: Self = _
pub const America__Montserrat: Self = _
pub const America__Nassau: Self = _
pub const America__New_York: Self = _
pub const America__Nipigon: Self = _
pub const America__Nome: Self = _
pub const America__Noronha: Self = _
pub const America__North_Dakota__Beulah: Self = _
pub const America__North_Dakota__Center: Self = _
pub const America__North_Dakota__New_Salem: Self = _
pub const America__Nuuk: Self = _
pub const America__Ojinaga: Self = _
pub const America__Panama: Self = _
pub const America__Pangnirtung: Self = _
pub const America__Paramaribo: Self = _
pub const America__Phoenix: Self = _
pub const America__PortauPrince: Self = _
pub const America__Port_of_Spain: Self = _
pub const America__Porto_Acre: Self = _
pub const America__Porto_Velho: Self = _
pub const America__Puerto_Rico: Self = _
pub const America__Punta_Arenas: Self = _
pub const America__Rainy_River: Self = _
pub const America__Rankin_Inlet: Self = _
pub const America__Recife: Self = _
pub const America__Regina: Self = _
pub const America__Resolute: Self = _
pub const America__Rio_Branco: Self = _
pub const America__Rosario: Self = _
pub const America__Santa_Isabel: Self = _
pub const America__Santarem: Self = _
pub const America__Santiago: Self = _
pub const America__Santo_Domingo: Self = _
pub const America__Sao_Paulo: Self = _
pub const America__Scoresbysund: Self = _
pub const America__Shiprock: Self = _
pub const America__Sitka: Self = _
pub const America__St_Barthelemy: Self = _
pub const America__St_Johns: Self = _
pub const America__St_Kitts: Self = _
pub const America__St_Lucia: Self = _
pub const America__St_Thomas: Self = _
pub const America__St_Vincent: Self = _
pub const America__Swift_Current: Self = _
pub const America__Tegucigalpa: Self = _
pub const America__Thule: Self = _
pub const America__Thunder_Bay: Self = _
pub const America__Tijuana: Self = _
pub const America__Toronto: Self = _
pub const America__Tortola: Self = _
pub const America__Vancouver: Self = _
pub const America__Virgin: Self = _
pub const America__Whitehorse: Self = _
pub const America__Winnipeg: Self = _
pub const America__Yakutat: Self = _
pub const America__Yellowknife: Self = _
pub const Antarctica__Casey: Self = _
pub const Antarctica__Davis: Self = _
pub const Antarctica__DumontDUrville: Self = _
pub const Antarctica__Macquarie: Self = _
pub const Antarctica__Mawson: Self = _
pub const Antarctica__McMurdo: Self = _
pub const Antarctica__Palmer: Self = _
pub const Antarctica__Rothera: Self = _
pub const Antarctica__South_Pole: Self = _
pub const Antarctica__Syowa: Self = _
pub const Antarctica__Troll: Self = _
pub const Antarctica__Vostok: Self = _
pub const Arctic__Longyearbyen: Self = _
pub const Asia__Aden: Self = _
pub const Asia__Almaty: Self = _
pub const Asia__Amman: Self = _
pub const Asia__Anadyr: Self = _
pub const Asia__Aqtau: Self = _
pub const Asia__Aqtobe: Self = _
pub const Asia__Ashgabat: Self = _
pub const Asia__Ashkhabad: Self = _
pub const Asia__Atyrau: Self = _
pub const Asia__Baghdad: Self = _
pub const Asia__Bahrain: Self = _
pub const Asia__Baku: Self = _
pub const Asia__Bangkok: Self = _
pub const Asia__Barnaul: Self = _
pub const Asia__Beirut: Self = _
pub const Asia__Bishkek: Self = _
pub const Asia__Brunei: Self = _
pub const Asia__Calcutta: Self = _
pub const Asia__Chita: Self = _
pub const Asia__Choibalsan: Self = _
pub const Asia__Chongqing: Self = _
pub const Asia__Chungking: Self = _
pub const Asia__Colombo: Self = _
pub const Asia__Dacca: Self = _
pub const Asia__Damascus: Self = _
pub const Asia__Dhaka: Self = _
pub const Asia__Dili: Self = _
pub const Asia__Dubai: Self = _
pub const Asia__Dushanbe: Self = _
pub const Asia__Famagusta: Self = _
pub const Asia__Gaza: Self = _
pub const Asia__Harbin: Self = _
pub const Asia__Hebron: Self = _
pub const Asia__Ho_Chi_Minh: Self = _
pub const Asia__Hong_Kong: Self = _
pub const Asia__Hovd: Self = _
pub const Asia__Irkutsk: Self = _
pub const Asia__Istanbul: Self = _
pub const Asia__Jakarta: Self = _
pub const Asia__Jayapura: Self = _
pub const Asia__Jerusalem: Self = _
pub const Asia__Kabul: Self = _
pub const Asia__Kamchatka: Self = _
pub const Asia__Karachi: Self = _
pub const Asia__Kashgar: Self = _
pub const Asia__Kathmandu: Self = _
pub const Asia__Katmandu: Self = _
pub const Asia__Khandyga: Self = _
pub const Asia__Kolkata: Self = _
pub const Asia__Krasnoyarsk: Self = _
pub const Asia__Kuala_Lumpur: Self = _
pub const Asia__Kuching: Self = _
pub const Asia__Kuwait: Self = _
pub const Asia__Macao: Self = _
pub const Asia__Macau: Self = _
pub const Asia__Magadan: Self = _
pub const Asia__Makassar: Self = _
pub const Asia__Manila: Self = _
pub const Asia__Muscat: Self = _
pub const Asia__Nicosia: Self = _
pub const Asia__Novokuznetsk: Self = _
pub const Asia__Novosibirsk: Self = _
pub const Asia__Omsk: Self = _
pub const Asia__Oral: Self = _
pub const Asia__Phnom_Penh: Self = _
pub const Asia__Pontianak: Self = _
pub const Asia__Pyongyang: Self = _
pub const Asia__Qatar: Self = _
pub const Asia__Qostanay: Self = _
pub const Asia__Qyzylorda: Self = _
pub const Asia__Rangoon: Self = _
pub const Asia__Riyadh: Self = _
pub const Asia__Saigon: Self = _
pub const Asia__Sakhalin: Self = _
pub const Asia__Samarkand: Self = _
pub const Asia__Seoul: Self = _
pub const Asia__Shanghai: Self = _
pub const Asia__Singapore: Self = _
pub const Asia__Srednekolymsk: Self = _
pub const Asia__Taipei: Self = _
pub const Asia__Tashkent: Self = _
pub const Asia__Tbilisi: Self = _
pub const Asia__Tehran: Self = _
pub const Asia__Tel_Aviv: Self = _
pub const Asia__Thimbu: Self = _
pub const Asia__Thimphu: Self = _
pub const Asia__Tokyo: Self = _
pub const Asia__Tomsk: Self = _
pub const Asia__Ujung_Pandang: Self = _
pub const Asia__Ulaanbaatar: Self = _
pub const Asia__Ulan_Bator: Self = _
pub const Asia__Urumqi: Self = _
pub const Asia__UstNera: Self = _
pub const Asia__Vientiane: Self = _
pub const Asia__Vladivostok: Self = _
pub const Asia__Yakutsk: Self = _
pub const Asia__Yangon: Self = _
pub const Asia__Yekaterinburg: Self = _
pub const Asia__Yerevan: Self = _
pub const Atlantic__Azores: Self = _
pub const Atlantic__Bermuda: Self = _
pub const Atlantic__Canary: Self = _
pub const Atlantic__Cape_Verde: Self = _
pub const Atlantic__Faeroe: Self = _
pub const Atlantic__Faroe: Self = _
pub const Atlantic__Jan_Mayen: Self = _
pub const Atlantic__Madeira: Self = _
pub const Atlantic__Reykjavik: Self = _
pub const Atlantic__South_Georgia: Self = _
pub const Atlantic__St_Helena: Self = _
pub const Atlantic__Stanley: Self = _
pub const Australia__ACT: Self = _
pub const Australia__Adelaide: Self = _
pub const Australia__Brisbane: Self = _
pub const Australia__Broken_Hill: Self = _
pub const Australia__Canberra: Self = _
pub const Australia__Currie: Self = _
pub const Australia__Darwin: Self = _
pub const Australia__Eucla: Self = _
pub const Australia__Hobart: Self = _
pub const Australia__LHI: Self = _
pub const Australia__Lindeman: Self = _
pub const Australia__Lord_Howe: Self = _
pub const Australia__Melbourne: Self = _
pub const Australia__NSW: Self = _
pub const Australia__North: Self = _
pub const Australia__Perth: Self = _
pub const Australia__Queensland: Self = _
pub const Australia__South: Self = _
pub const Australia__Sydney: Self = _
pub const Australia__Tasmania: Self = _
pub const Australia__Victoria: Self = _
pub const Australia__West: Self = _
pub const Australia__Yancowinna: Self = _
pub const Brazil__Acre: Self = _
pub const Brazil__DeNoronha: Self = _
pub const Brazil__East: Self = _
pub const Brazil__West: Self = _
pub const CET: Self = _
pub const CST6CDT: Self = _
pub const Canada__Atlantic: Self = _
pub const Canada__Central: Self = _
pub const Canada__Eastern: Self = _
pub const Canada__Mountain: Self = _
pub const Canada__Newfoundland: Self = _
pub const Canada__Pacific: Self = _
pub const Canada__Saskatchewan: Self = _
pub const Canada__Yukon: Self = _
pub const Chile__Continental: Self = _
pub const Chile__EasterIsland: Self = _
pub const Cuba: Self = _
pub const EET: Self = _
pub const EST: Self = _
pub const EST5EDT: Self = _
pub const Egypt: Self = _
pub const Eire: Self = _
pub const Etc__GMT: Self = _
pub const Etc__GMTPlus0: Self = _
pub const Etc__GMTPlus1: Self = _
pub const Etc__GMTPlus10: Self = _
pub const Etc__GMTPlus11: Self = _
pub const Etc__GMTPlus12: Self = _
pub const Etc__GMTPlus2: Self = _
pub const Etc__GMTPlus3: Self = _
pub const Etc__GMTPlus4: Self = _
pub const Etc__GMTPlus5: Self = _
pub const Etc__GMTPlus6: Self = _
pub const Etc__GMTPlus7: Self = _
pub const Etc__GMTPlus8: Self = _
pub const Etc__GMTPlus9: Self = _
pub const Etc__GMTMinus0: Self = _
pub const Etc__GMTMinus1: Self = _
pub const Etc__GMTMinus10: Self = _
pub const Etc__GMTMinus11: Self = _
pub const Etc__GMTMinus12: Self = _
pub const Etc__GMTMinus13: Self = _
pub const Etc__GMTMinus14: Self = _
pub const Etc__GMTMinus2: Self = _
pub const Etc__GMTMinus3: Self = _
pub const Etc__GMTMinus4: Self = _
pub const Etc__GMTMinus5: Self = _
pub const Etc__GMTMinus6: Self = _
pub const Etc__GMTMinus7: Self = _
pub const Etc__GMTMinus8: Self = _
pub const Etc__GMTMinus9: Self = _
pub const Etc__GMT0: Self = _
pub const Etc__Greenwich: Self = _
pub const Etc__UCT: Self = _
pub const Etc__UTC: Self = _
pub const Etc__Universal: Self = _
pub const Etc__Zulu: Self = _
pub const Europe__Amsterdam: Self = _
pub const Europe__Andorra: Self = _
pub const Europe__Astrakhan: Self = _
pub const Europe__Athens: Self = _
pub const Europe__Belfast: Self = _
pub const Europe__Belgrade: Self = _
pub const Europe__Berlin: Self = _
pub const Europe__Bratislava: Self = _
pub const Europe__Brussels: Self = _
pub const Europe__Bucharest: Self = _
pub const Europe__Budapest: Self = _
pub const Europe__Busingen: Self = _
pub const Europe__Chisinau: Self = _
pub const Europe__Copenhagen: Self = _
pub const Europe__Dublin: Self = _
pub const Europe__Gibraltar: Self = _
pub const Europe__Guernsey: Self = _
pub const Europe__Helsinki: Self = _
pub const Europe__Isle_of_Man: Self = _
pub const Europe__Istanbul: Self = _
pub const Europe__Jersey: Self = _
pub const Europe__Kaliningrad: Self = _
pub const Europe__Kiev: Self = _
pub const Europe__Kirov: Self = _
pub const Europe__Lisbon: Self = _
pub const Europe__Ljubljana: Self = _
pub const Europe__London: Self = _
pub const Europe__Luxembourg: Self = _
pub const Europe__Madrid: Self = _
pub const Europe__Malta: Self = _
pub const Europe__Mariehamn: Self = _
pub const Europe__Minsk: Self = _
pub const Europe__Monaco: Self = _
pub const Europe__Moscow: Self = _
pub const Europe__Nicosia: Self = _
pub const Europe__Oslo: Self = _
pub const Europe__Paris: Self = _
pub const Europe__Podgorica: Self = _
pub const Europe__Prague: Self = _
pub const Europe__Riga: Self = _
pub const Europe__Rome: Self = _
pub const Europe__Samara: Self = _
pub const Europe__San_Marino: Self = _
pub const Europe__Sarajevo: Self = _
pub const Europe__Saratov: Self = _
pub const Europe__Simferopol: Self = _
pub const Europe__Skopje: Self = _
pub const Europe__Sofia: Self = _
pub const Europe__Stockholm: Self = _
pub const Europe__Tallinn: Self = _
pub const Europe__Tirane: Self = _
pub const Europe__Tiraspol: Self = _
pub const Europe__Ulyanovsk: Self = _
pub const Europe__Uzhgorod: Self = _
pub const Europe__Vaduz: Self = _
pub const Europe__Vatican: Self = _
pub const Europe__Vienna: Self = _
pub const Europe__Vilnius: Self = _
pub const Europe__Volgograd: Self = _
pub const Europe__Warsaw: Self = _
pub const Europe__Zagreb: Self = _
pub const Europe__Zaporozhye: Self = _
pub const Europe__Zurich: Self = _
pub const GB: Self = _
pub const GBEire: Self = _
pub const GMT: Self = _
pub const GMTPlus0: Self = _
pub const GMTMinus0: Self = _
pub const GMT0: Self = _
pub const Greenwich: Self = _
pub const HST: Self = _
pub const Hongkong: Self = _
pub const Iceland: Self = _
pub const Indian__Antananarivo: Self = _
pub const Indian__Chagos: Self = _
pub const Indian__Christmas: Self = _
pub const Indian__Cocos: Self = _
pub const Indian__Comoro: Self = _
pub const Indian__Kerguelen: Self = _
pub const Indian__Mahe: Self = _
pub const Indian__Maldives: Self = _
pub const Indian__Mauritius: Self = _
pub const Indian__Mayotte: Self = _
pub const Indian__Reunion: Self = _
pub const Iran: Self = _
pub const Israel: Self = _
pub const Jamaica: Self = _
pub const Japan: Self = _
pub const Kwajalein: Self = _
pub const Libya: Self = _
pub const MET: Self = _
pub const MST: Self = _
pub const MST7MDT: Self = _
pub const Mexico__BajaNorte: Self = _
pub const Mexico__BajaSur: Self = _
pub const Mexico__General: Self = _
pub const NZ: Self = _
pub const NZCHAT: Self = _
pub const PRC: Self = _
pub const PST8PDT: Self = _
pub const Pacific__Apia: Self = _
pub const Pacific__Auckland: Self = _
pub const Pacific__Bougainville: Self = _
pub const Pacific__Chatham: Self = _
pub const Pacific__Chuuk: Self = _
pub const Pacific__Easter: Self = _
pub const Pacific__Efate: Self = _
pub const Pacific__Enderbury: Self = _
pub const Pacific__Fakaofo: Self = _
pub const Pacific__Fiji: Self = _
pub const Pacific__Funafuti: Self = _
pub const Pacific__Galapagos: Self = _
pub const Pacific__Gambier: Self = _
pub const Pacific__Guadalcanal: Self = _
pub const Pacific__Guam: Self = _
pub const Pacific__Honolulu: Self = _
pub const Pacific__Johnston: Self = _
pub const Pacific__Kanton: Self = _
pub const Pacific__Kiritimati: Self = _
pub const Pacific__Kosrae: Self = _
pub const Pacific__Kwajalein: Self = _
pub const Pacific__Majuro: Self = _
pub const Pacific__Marquesas: Self = _
pub const Pacific__Midway: Self = _
pub const Pacific__Nauru: Self = _
pub const Pacific__Niue: Self = _
pub const Pacific__Norfolk: Self = _
pub const Pacific__Noumea: Self = _
pub const Pacific__Pago_Pago: Self = _
pub const Pacific__Palau: Self = _
pub const Pacific__Pitcairn: Self = _
pub const Pacific__Pohnpei: Self = _
pub const Pacific__Ponape: Self = _
pub const Pacific__Port_Moresby: Self = _
pub const Pacific__Rarotonga: Self = _
pub const Pacific__Saipan: Self = _
pub const Pacific__Samoa: Self = _
pub const Pacific__Tahiti: Self = _
pub const Pacific__Tarawa: Self = _
pub const Pacific__Tongatapu: Self = _
pub const Pacific__Truk: Self = _
pub const Pacific__Wake: Self = _
pub const Pacific__Wallis: Self = _
pub const Pacific__Yap: Self = _
pub const Poland: Self = _
pub const Portugal: Self = _
pub const ROC: Self = _
pub const ROK: Self = _
pub const Singapore: Self = _
pub const Turkey: Self = _
pub const UCT: Self = _
pub const US__Alaska: Self = _
pub const US__Aleutian: Self = _
pub const US__Arizona: Self = _
pub const US__Central: Self = _
pub const US__EastIndiana: Self = _
pub const US__Eastern: Self = _
pub const US__Hawaii: Self = _
pub const US__IndianaStarke: Self = _
pub const US__Michigan: Self = _
pub const US__Mountain: Self = _
pub const US__Pacific: Self = _
pub const US__Samoa: Self = _
pub const UTC: Self = _
pub const Universal: Self = _
pub const WSU: Self = _
pub const WET: Self = _
pub const Zulu: Self = _
Trait Implementations§
source§impl PartialEq for Tz
impl PartialEq for Tz
source§impl TimeZone for Tz
impl TimeZone for Tz
§type Offset = RRuleOffset
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
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>
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>
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
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
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>>
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 moresource§fn ymd(&self, year: i32, month: u32, day: u32) -> Date<Self>
fn ymd(&self, year: i32, month: u32, day: u32) -> Date<Self>
👎Deprecated since 0.4.23: use
with_ymd_and_hms()
insteadMakes 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 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>>
👎Deprecated since 0.4.23: use
with_ymd_and_hms()
insteadMakes 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 moresource§fn yo(&self, year: i32, ordinal: u32) -> Date<Self>
fn yo(&self, year: i32, ordinal: u32) -> Date<Self>
👎Deprecated since 0.4.23: use
from_local_datetime()
with a NaiveDateTime
insteadMakes 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 moresource§fn yo_opt(&self, year: i32, ordinal: u32) -> LocalResult<Date<Self>>
fn yo_opt(&self, year: i32, ordinal: u32) -> LocalResult<Date<Self>>
👎Deprecated since 0.4.23: use
from_local_datetime()
with a NaiveDateTime
insteadMakes 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 moresource§fn isoywd(&self, year: i32, week: u32, weekday: Weekday) -> Date<Self>
fn isoywd(&self, year: i32, week: u32, weekday: Weekday) -> Date<Self>
👎Deprecated since 0.4.23: use
from_local_datetime()
with a NaiveDateTime
insteadMakes 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 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>>
👎Deprecated since 0.4.23: use
from_local_datetime()
with a NaiveDateTime
insteadMakes 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 moresource§fn timestamp(&self, secs: i64, nsecs: u32) -> DateTime<Self>
fn timestamp(&self, secs: i64, nsecs: u32) -> DateTime<Self>
👎Deprecated since 0.4.23: use
timestamp_opt()
insteadMakes 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 moresource§fn timestamp_opt(&self, secs: i64, nsecs: u32) -> LocalResult<DateTime<Self>>
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 moresource§fn timestamp_millis(&self, millis: i64) -> DateTime<Self>
fn timestamp_millis(&self, millis: i64) -> DateTime<Self>
👎Deprecated since 0.4.23: use
timestamp_millis_opt()
insteadMakes a new
DateTime
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>>
Makes a new
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>
Makes a new
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>>
Makes a new
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>
👎Deprecated since 0.4.29: use
DateTime::parse_from_str
or NaiveDateTime::parse_from_str
with and_utc()
or and_local_timezone()
insteadParses a string with the specified format string and returns a
DateTime
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>>
👎Deprecated since 0.4.23: use
from_local_datetime()
insteadConverts the local
NaiveDate
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>>
Converts the local
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>
👎Deprecated since 0.4.23: use
from_utc_datetime()
insteadConverts 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>
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).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> 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
Mutably borrows from an owned value. Read more