pub struct Offset { /* private fields */ }Expand description
A Steady (i.e. fixed) offset from UTC
There is a handful of timezones in the IANA database that are always at the same offset (i.e. no DST, no time zone transitions ever), and these are implemented as associated constants here.
Most of these are fixed “by definition”, that is their name literally is Etc/GMTPlus3 or something to that effect – these are unlikely to ever change between versions of the database.
However, for the time zones where that is not immediately obvious, a word of caution: if any of these, according to the timezone database, cease being fixed offsets, the associated constants will be removed unceremoniously from the next version of this library.
As such, no semantic versioning guarantees can be made about these constants.
Finally, as a reminder: the timezone database reflects the arbitrary and frequently insane decisions made by politicians.
Implementations§
Source§impl Offset
impl Offset
Sourcepub const Etc__GMTPlus0: Self = Self::Etc__GMT
pub const Etc__GMTPlus0: Self = Self::Etc__GMT
Etc/GMT+0 (an alias for Etc/GMT)
Sourcepub const Etc__GMTPlus1: Self
pub const Etc__GMTPlus1: Self
Etc/GMT+1
Sourcepub const Etc__GMTPlus10: Self
pub const Etc__GMTPlus10: Self
Etc/GMT+10
Sourcepub const Etc__GMTPlus11: Self
pub const Etc__GMTPlus11: Self
Etc/GMT+11
Sourcepub const Etc__GMTPlus12: Self
pub const Etc__GMTPlus12: Self
Etc/GMT+12
Sourcepub const Etc__GMTPlus2: Self
pub const Etc__GMTPlus2: Self
Etc/GMT+2
Sourcepub const Etc__GMTPlus3: Self
pub const Etc__GMTPlus3: Self
Etc/GMT+3
Sourcepub const Etc__GMTPlus4: Self
pub const Etc__GMTPlus4: Self
Etc/GMT+4
Sourcepub const Etc__GMTPlus5: Self
pub const Etc__GMTPlus5: Self
Etc/GMT+5
Sourcepub const Etc__GMTPlus6: Self
pub const Etc__GMTPlus6: Self
Etc/GMT+6
Sourcepub const Etc__GMTPlus7: Self
pub const Etc__GMTPlus7: Self
Etc/GMT+7
Sourcepub const Etc__GMTPlus8: Self
pub const Etc__GMTPlus8: Self
Etc/GMT+8
Sourcepub const Etc__GMTPlus9: Self
pub const Etc__GMTPlus9: Self
Etc/GMT+9
Sourcepub const Etc__GMTMinus0: Self = Self::Etc__GMT
pub const Etc__GMTMinus0: Self = Self::Etc__GMT
Etc/GMT-0 (an alias for Etc/GMT)
Sourcepub const Etc__GMTMinus1: Self
pub const Etc__GMTMinus1: Self
Etc/GMT-1
Sourcepub const Etc__GMTMinus10: Self
pub const Etc__GMTMinus10: Self
Etc/GMT-10
Sourcepub const Etc__GMTMinus11: Self
pub const Etc__GMTMinus11: Self
Etc/GMT-11
Sourcepub const Etc__GMTMinus12: Self
pub const Etc__GMTMinus12: Self
Etc/GMT-12
Sourcepub const Etc__GMTMinus13: Self
pub const Etc__GMTMinus13: Self
Etc/GMT-13
Sourcepub const Etc__GMTMinus14: Self
pub const Etc__GMTMinus14: Self
Etc/GMT-14
Sourcepub const Etc__GMTMinus2: Self
pub const Etc__GMTMinus2: Self
Etc/GMT-2
Sourcepub const Etc__GMTMinus3: Self
pub const Etc__GMTMinus3: Self
Etc/GMT-3
Sourcepub const Etc__GMTMinus4: Self
pub const Etc__GMTMinus4: Self
Etc/GMT-4
Sourcepub const Etc__GMTMinus5: Self
pub const Etc__GMTMinus5: Self
Etc/GMT-5
Sourcepub const Etc__GMTMinus6: Self
pub const Etc__GMTMinus6: Self
Etc/GMT-6
Sourcepub const Etc__GMTMinus7: Self
pub const Etc__GMTMinus7: Self
Etc/GMT-7
Sourcepub const Etc__GMTMinus8: Self
pub const Etc__GMTMinus8: Self
Etc/GMT-8
Sourcepub const Etc__GMTMinus9: Self
pub const Etc__GMTMinus9: Self
Etc/GMT-9
Sourcepub const Etc__Greenwich: Self = Self::Etc__GMT
pub const Etc__Greenwich: Self = Self::Etc__GMT
Etc/Greenwich (an alias for Etc/GMT)
Sourcepub const Etc__Universal: Self = Self::Etc__UTC
pub const Etc__Universal: Self = Self::Etc__UTC
Etc/Universal (an alias for Etc/UTC)