[−][src]Enum chrono_tz::Tz
Variants
Africa__AbidjanAfrica__AccraAfrica__Addis_AbabaAfrica__AlgiersAfrica__AsmaraAfrica__AsmeraAfrica__BamakoAfrica__BanguiAfrica__BanjulAfrica__BissauAfrica__BlantyreAfrica__BrazzavilleAfrica__BujumburaAfrica__CairoAfrica__CasablancaAfrica__CeutaAfrica__ConakryAfrica__DakarAfrica__Dar_es_SalaamAfrica__DjiboutiAfrica__DoualaAfrica__El_AaiunAfrica__FreetownAfrica__GaboroneAfrica__HarareAfrica__JohannesburgAfrica__JubaAfrica__KampalaAfrica__KhartoumAfrica__KigaliAfrica__KinshasaAfrica__LagosAfrica__LibrevilleAfrica__LomeAfrica__LuandaAfrica__LubumbashiAfrica__LusakaAfrica__MalaboAfrica__MaputoAfrica__MaseruAfrica__MbabaneAfrica__MogadishuAfrica__MonroviaAfrica__NairobiAfrica__NdjamenaAfrica__NiameyAfrica__NouakchottAfrica__OuagadougouAfrica__PortoNovoAfrica__Sao_TomeAfrica__TimbuktuAfrica__TripoliAfrica__TunisAfrica__WindhoekAmerica__AdakAmerica__AnchorageAmerica__AnguillaAmerica__AntiguaAmerica__AraguainaAmerica__Argentina__Buenos_AiresAmerica__Argentina__CatamarcaAmerica__Argentina__ComodRivadaviaAmerica__Argentina__CordobaAmerica__Argentina__JujuyAmerica__Argentina__La_RiojaAmerica__Argentina__MendozaAmerica__Argentina__Rio_GallegosAmerica__Argentina__SaltaAmerica__Argentina__San_JuanAmerica__Argentina__San_LuisAmerica__Argentina__TucumanAmerica__Argentina__UshuaiaAmerica__ArubaAmerica__AsuncionAmerica__AtikokanAmerica__AtkaAmerica__BahiaAmerica__Bahia_BanderasAmerica__BarbadosAmerica__BelemAmerica__BelizeAmerica__BlancSablonAmerica__Boa_VistaAmerica__BogotaAmerica__BoiseAmerica__Buenos_AiresAmerica__Cambridge_BayAmerica__Campo_GrandeAmerica__CancunAmerica__CaracasAmerica__CatamarcaAmerica__CayenneAmerica__CaymanAmerica__ChicagoAmerica__ChihuahuaAmerica__Coral_HarbourAmerica__CordobaAmerica__Costa_RicaAmerica__CrestonAmerica__CuiabaAmerica__CuracaoAmerica__DanmarkshavnAmerica__DawsonAmerica__Dawson_CreekAmerica__DenverAmerica__DetroitAmerica__DominicaAmerica__EdmontonAmerica__EirunepeAmerica__El_SalvadorAmerica__EnsenadaAmerica__Fort_NelsonAmerica__Fort_WayneAmerica__FortalezaAmerica__Glace_BayAmerica__GodthabAmerica__Goose_BayAmerica__Grand_TurkAmerica__GrenadaAmerica__GuadeloupeAmerica__GuatemalaAmerica__GuayaquilAmerica__GuyanaAmerica__HalifaxAmerica__HavanaAmerica__HermosilloAmerica__Indiana__IndianapolisAmerica__Indiana__KnoxAmerica__Indiana__MarengoAmerica__Indiana__PetersburgAmerica__Indiana__Tell_CityAmerica__Indiana__VevayAmerica__Indiana__VincennesAmerica__Indiana__WinamacAmerica__IndianapolisAmerica__InuvikAmerica__IqaluitAmerica__JamaicaAmerica__JujuyAmerica__JuneauAmerica__Kentucky__LouisvilleAmerica__Kentucky__MonticelloAmerica__Knox_INAmerica__KralendijkAmerica__La_PazAmerica__LimaAmerica__Los_AngelesAmerica__LouisvilleAmerica__Lower_PrincesAmerica__MaceioAmerica__ManaguaAmerica__ManausAmerica__MarigotAmerica__MartiniqueAmerica__MatamorosAmerica__MazatlanAmerica__MendozaAmerica__MenomineeAmerica__MeridaAmerica__MetlakatlaAmerica__Mexico_CityAmerica__MiquelonAmerica__MonctonAmerica__MonterreyAmerica__MontevideoAmerica__MontrealAmerica__MontserratAmerica__NassauAmerica__New_YorkAmerica__NipigonAmerica__NomeAmerica__NoronhaAmerica__North_Dakota__BeulahAmerica__North_Dakota__CenterAmerica__North_Dakota__New_SalemAmerica__OjinagaAmerica__PanamaAmerica__PangnirtungAmerica__ParamariboAmerica__PhoenixAmerica__PortauPrinceAmerica__Port_of_SpainAmerica__Porto_AcreAmerica__Porto_VelhoAmerica__Puerto_RicoAmerica__Punta_ArenasAmerica__Rainy_RiverAmerica__Rankin_InletAmerica__RecifeAmerica__ReginaAmerica__ResoluteAmerica__Rio_BrancoAmerica__RosarioAmerica__Santa_IsabelAmerica__SantaremAmerica__SantiagoAmerica__Santo_DomingoAmerica__Sao_PauloAmerica__ScoresbysundAmerica__ShiprockAmerica__SitkaAmerica__St_BarthelemyAmerica__St_JohnsAmerica__St_KittsAmerica__St_LuciaAmerica__St_ThomasAmerica__St_VincentAmerica__Swift_CurrentAmerica__TegucigalpaAmerica__ThuleAmerica__Thunder_BayAmerica__TijuanaAmerica__TorontoAmerica__TortolaAmerica__VancouverAmerica__VirginAmerica__WhitehorseAmerica__WinnipegAmerica__YakutatAmerica__YellowknifeAntarctica__CaseyAntarctica__DavisAntarctica__DumontDUrvilleAntarctica__MacquarieAntarctica__MawsonAntarctica__McMurdoAntarctica__PalmerAntarctica__RotheraAntarctica__South_PoleAntarctica__SyowaAntarctica__TrollAntarctica__VostokArctic__LongyearbyenAsia__AdenAsia__AlmatyAsia__AmmanAsia__AnadyrAsia__AqtauAsia__AqtobeAsia__AshgabatAsia__AshkhabadAsia__AtyrauAsia__BaghdadAsia__BahrainAsia__BakuAsia__BangkokAsia__BarnaulAsia__BeirutAsia__BishkekAsia__BruneiAsia__CalcuttaAsia__ChitaAsia__ChoibalsanAsia__ChongqingAsia__ChungkingAsia__ColomboAsia__DaccaAsia__DamascusAsia__DhakaAsia__DiliAsia__DubaiAsia__DushanbeAsia__FamagustaAsia__GazaAsia__HarbinAsia__HebronAsia__Ho_Chi_MinhAsia__Hong_KongAsia__HovdAsia__IrkutskAsia__IstanbulAsia__JakartaAsia__JayapuraAsia__JerusalemAsia__KabulAsia__KamchatkaAsia__KarachiAsia__KashgarAsia__KathmanduAsia__KatmanduAsia__KhandygaAsia__KolkataAsia__KrasnoyarskAsia__Kuala_LumpurAsia__KuchingAsia__KuwaitAsia__MacaoAsia__MacauAsia__MagadanAsia__MakassarAsia__ManilaAsia__MuscatAsia__NicosiaAsia__NovokuznetskAsia__NovosibirskAsia__OmskAsia__OralAsia__Phnom_PenhAsia__PontianakAsia__PyongyangAsia__QatarAsia__QostanayAsia__QyzylordaAsia__RangoonAsia__RiyadhAsia__SaigonAsia__SakhalinAsia__SamarkandAsia__SeoulAsia__ShanghaiAsia__SingaporeAsia__SrednekolymskAsia__TaipeiAsia__TashkentAsia__TbilisiAsia__TehranAsia__Tel_AvivAsia__ThimbuAsia__ThimphuAsia__TokyoAsia__TomskAsia__Ujung_PandangAsia__UlaanbaatarAsia__Ulan_BatorAsia__UrumqiAsia__UstNeraAsia__VientianeAsia__VladivostokAsia__YakutskAsia__YangonAsia__YekaterinburgAsia__YerevanAtlantic__AzoresAtlantic__BermudaAtlantic__CanaryAtlantic__Cape_VerdeAtlantic__FaeroeAtlantic__FaroeAtlantic__Jan_MayenAtlantic__MadeiraAtlantic__ReykjavikAtlantic__South_GeorgiaAtlantic__St_HelenaAtlantic__StanleyAustralia__ACTAustralia__AdelaideAustralia__BrisbaneAustralia__Broken_HillAustralia__CanberraAustralia__CurrieAustralia__DarwinAustralia__EuclaAustralia__HobartAustralia__LHIAustralia__LindemanAustralia__Lord_HoweAustralia__MelbourneAustralia__NSWAustralia__NorthAustralia__PerthAustralia__QueenslandAustralia__SouthAustralia__SydneyAustralia__TasmaniaAustralia__VictoriaAustralia__WestAustralia__YancowinnaBrazil__AcreBrazil__DeNoronhaBrazil__EastBrazil__WestCETCST6CDTCanada__AtlanticCanada__CentralCanada__EasternCanada__MountainCanada__NewfoundlandCanada__PacificCanada__SaskatchewanCanada__YukonChile__ContinentalChile__EasterIslandCubaEETESTEST5EDTEgyptEireEtc__GMTEtc__GMTPlus0Etc__GMTPlus1Etc__GMTPlus10Etc__GMTPlus11Etc__GMTPlus12Etc__GMTPlus2Etc__GMTPlus3Etc__GMTPlus4Etc__GMTPlus5Etc__GMTPlus6Etc__GMTPlus7Etc__GMTPlus8Etc__GMTPlus9Etc__GMTMinus0Etc__GMTMinus1Etc__GMTMinus10Etc__GMTMinus11Etc__GMTMinus12Etc__GMTMinus13Etc__GMTMinus14Etc__GMTMinus2Etc__GMTMinus3Etc__GMTMinus4Etc__GMTMinus5Etc__GMTMinus6Etc__GMTMinus7Etc__GMTMinus8Etc__GMTMinus9Etc__GMT0Etc__GreenwichEtc__UCTEtc__UTCEtc__UniversalEtc__ZuluEurope__AmsterdamEurope__AndorraEurope__AstrakhanEurope__AthensEurope__BelfastEurope__BelgradeEurope__BerlinEurope__BratislavaEurope__BrusselsEurope__BucharestEurope__BudapestEurope__BusingenEurope__ChisinauEurope__CopenhagenEurope__DublinEurope__GibraltarEurope__GuernseyEurope__HelsinkiEurope__Isle_of_ManEurope__IstanbulEurope__JerseyEurope__KaliningradEurope__KievEurope__KirovEurope__LisbonEurope__LjubljanaEurope__LondonEurope__LuxembourgEurope__MadridEurope__MaltaEurope__MariehamnEurope__MinskEurope__MonacoEurope__MoscowEurope__NicosiaEurope__OsloEurope__ParisEurope__PodgoricaEurope__PragueEurope__RigaEurope__RomeEurope__SamaraEurope__San_MarinoEurope__SarajevoEurope__SaratovEurope__SimferopolEurope__SkopjeEurope__SofiaEurope__StockholmEurope__TallinnEurope__TiraneEurope__TiraspolEurope__UlyanovskEurope__UzhgorodEurope__VaduzEurope__VaticanEurope__ViennaEurope__VilniusEurope__VolgogradEurope__WarsawEurope__ZagrebEurope__ZaporozhyeEurope__ZurichGBGBEireGMTGMTPlus0GMTMinus0GMT0GreenwichHSTHongkongIcelandIndian__AntananarivoIndian__ChagosIndian__ChristmasIndian__CocosIndian__ComoroIndian__KerguelenIndian__MaheIndian__MaldivesIndian__MauritiusIndian__MayotteIndian__ReunionIranIsraelJamaicaJapanKwajaleinLibyaMETMSTMST7MDTMexico__BajaNorteMexico__BajaSurMexico__GeneralNZNZCHATPRCPST8PDTPacific__ApiaPacific__AucklandPacific__BougainvillePacific__ChathamPacific__ChuukPacific__EasterPacific__EfatePacific__EnderburyPacific__FakaofoPacific__FijiPacific__FunafutiPacific__GalapagosPacific__GambierPacific__GuadalcanalPacific__GuamPacific__HonoluluPacific__JohnstonPacific__KiritimatiPacific__KosraePacific__KwajaleinPacific__MajuroPacific__MarquesasPacific__MidwayPacific__NauruPacific__NiuePacific__NorfolkPacific__NoumeaPacific__Pago_PagoPacific__PalauPacific__PitcairnPacific__PohnpeiPacific__PonapePacific__Port_MoresbyPacific__RarotongaPacific__SaipanPacific__SamoaPacific__TahitiPacific__TarawaPacific__TongatapuPacific__TrukPacific__WakePacific__WallisPacific__YapPolandPortugalROCROKSingaporeTurkeyUCTUS__AlaskaUS__AleutianUS__ArizonaUS__CentralUS__EastIndianaUS__EasternUS__HawaiiUS__IndianaStarkeUS__MichiganUS__MountainUS__PacificUS__PacificNewUS__SamoaUTCUniversalWSUWETZuluMethods
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) -> bool1.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,