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)