pub enum Zone {
Utc,
Offset(i32),
Abbreviation {
name: String,
offset: i32,
dst: bool,
},
Named(TimeZone),
}Expand description
A time zone, in the three forms PHP has: an identifier, an abbreviation and a fixed offset.
Variants§
Utc
UTC.
Offset(i32)
A fixed offset, in seconds east of UTC: +02:00. Jiff accepts up to ±25:59:59.
Abbreviation
An abbreviation: EST, CEST, Z.
Fields
Named(TimeZone)
An IANA identifier: Europe/Madrid.
Implementations§
Trait Implementations§
impl Eq for Zone
impl StructuralPartialEq for Zone
Auto Trait Implementations§
impl Forget for Zone
impl Freeze for Zone
impl Move for Zone
impl RefUnwindSafe for Zone
impl Send for Zone
impl Sync for Zone
impl Unpin for Zone
impl UnsafeUnpin for Zone
impl UnwindSafe for Zone
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.