[−][src]Enum chrono_tz::Tz
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__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__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__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
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__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__PacificNew
US__Samoa
UTC
Universal
WSU
WET
Zulu
Methods
impl Tz
[src]
Trait Implementations
impl Copy for Tz
[src]
impl PartialEq<Tz> for Tz
[src]
fn eq(&self, other: &Tz) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Clone for Tz
[src]
fn clone(&self) -> Tz
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Eq for Tz
[src]
impl Debug for Tz
[src]
impl Hash for Tz
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl FromStr for Tz
[src]
type Err = String
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, String>
[src]
impl TimeZone for Tz
[src]
type Offset = TzOffset
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
. Read more
fn from_offset(offset: &Self::Offset) -> Self
[src]
fn offset_from_local_date(&self, local: &NaiveDate) -> LocalResult<Self::Offset>
[src]
fn offset_from_local_datetime(
&self,
local: &NaiveDateTime
) -> LocalResult<Self::Offset>
[src]
&self,
local: &NaiveDateTime
) -> LocalResult<Self::Offset>
fn offset_from_utc_date(&self, utc: &NaiveDate) -> Self::Offset
[src]
fn offset_from_utc_datetime(&self, utc: &NaiveDateTime) -> Self::Offset
[src]
fn ymd(&self, year: i32, month: u32, day: u32) -> Date<Self>
[src]
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
fn ymd_opt(&self, year: i32, month: u32, day: u32) -> LocalResult<Date<Self>>
[src]
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
fn yo(&self, year: i32, ordinal: u32) -> Date<Self>
[src]
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
fn yo_opt(&self, year: i32, ordinal: u32) -> LocalResult<Date<Self>>
[src]
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
fn isoywd(&self, year: i32, week: u32, weekday: Weekday) -> Date<Self>
[src]
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
fn isoywd_opt(
&self,
year: i32,
week: u32,
weekday: Weekday
) -> LocalResult<Date<Self>>
[src]
&self,
year: i32,
week: u32,
weekday: Weekday
) -> LocalResult<Date<Self>>
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
fn timestamp(&self, secs: i64, nsecs: u32) -> DateTime<Self>
[src]
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
fn timestamp_opt(&self, secs: i64, nsecs: u32) -> LocalResult<DateTime<Self>>
[src]
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
fn timestamp_millis(&self, millis: i64) -> DateTime<Self>
[src]
Makes a new DateTime
from the number of non-leap milliseconds since January 1, 1970 0:00:00 UTC (aka "UNIX timestamp"). Read more
fn timestamp_millis_opt(&self, millis: i64) -> LocalResult<DateTime<Self>>
[src]
Makes a new DateTime
from the number of non-leap milliseconds since January 1, 1970 0:00:00 UTC (aka "UNIX timestamp"). Read more
fn datetime_from_str(
&self,
s: &str,
fmt: &str
) -> Result<DateTime<Self>, ParseError>
[src]
&self,
s: &str,
fmt: &str
) -> Result<DateTime<Self>, ParseError>
Parses a string with the specified format string and returns a DateTime
with the current offset. See the format::strftime
module on the supported escape sequences. Read more
fn from_local_date(&self, local: &NaiveDate) -> LocalResult<Date<Self>>
[src]
Converts the local NaiveDate
to the timezone-aware Date
if possible.
fn from_local_datetime(
&self,
local: &NaiveDateTime
) -> LocalResult<DateTime<Self>>
[src]
&self,
local: &NaiveDateTime
) -> LocalResult<DateTime<Self>>
Converts the local NaiveDateTime
to the timezone-aware DateTime
if possible.
fn from_utc_date(&self, utc: &NaiveDate) -> Date<Self>
[src]
Converts the UTC NaiveDate
to the local time. The UTC is continuous and thus this cannot fail (but can give the duplicate local time). Read more
fn from_utc_datetime(&self, utc: &NaiveDateTime) -> DateTime<Self>
[src]
Converts the UTC NaiveDateTime
to the local time. The UTC is continuous and thus this cannot fail (but can give the duplicate local time). Read more
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,