pub struct FixedZone {
pub offset: i32,
pub abbrev: String,
}Expand description
A zone with one offset at all instants, such as UTC.
Fields§
§offset: i32Seconds east of UTC.
abbrev: StringImplementations§
Trait Implementations§
impl Eq for FixedZone
impl StructuralPartialEq for FixedZone
Source§impl TimeZone for FixedZone
impl TimeZone for FixedZone
fn at(&self, _: i64) -> (i32, &str)
Source§fn abbrev_meaning(&self, abbrev: &str) -> Option<AbbrevMeaning>
fn abbrev_meaning(&self, abbrev: &str) -> Option<AbbrevMeaning>
The meaning of an abbreviation in upper case in this zone over all of its history, as
pg_timezone_abbrev_is_known gives it.Source§fn abbrev_at(&self, abbrev: &str, _: i64) -> Option<(i32, bool)>
fn abbrev_at(&self, abbrev: &str, _: i64) -> Option<(i32, bool)>
The offset east of UTC and the daylight saving flag of an abbreviation in upper case at an instant, as
pg_interpret_timezone_abbrev gives them.Source§fn fixed_offset(&self) -> Option<i32>
fn fixed_offset(&self) -> Option<i32>
The offset east of UTC if the zone has one offset at all instants, as
pg_get_timezone_offset gives it.Auto Trait Implementations§
impl Freeze for FixedZone
impl RefUnwindSafe for FixedZone
impl Send for FixedZone
impl Sync for FixedZone
impl Unpin for FixedZone
impl UnsafeUnpin for FixedZone
impl UnwindSafe for FixedZone
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