pub struct TimeZone { /* private fields */ }Expand description
The formatting context’s time zone: the default of timeZone
(plans/03-runtime.md §6). Owned — a per-request zone need not be
'static.
Implementations§
Source§impl TimeZone
impl TimeZone
Sourcepub const fn offset(seconds: i32) -> Option<TimeZone>
pub const fn offset(seconds: i32) -> Option<TimeZone>
A fixed offset, in seconds east of UTC; None unless |seconds| <
86,400.
Sourcepub fn named(name: &str) -> Option<TimeZone>
pub fn named(name: &str) -> Option<TimeZone>
The IANA zone name; None unless it is a well-formed RFC 9557
time-zone-name of at most 64 bytes.
Sourcepub fn as_option(&self) -> ZoneOption<'_>
pub fn as_option(&self) -> ZoneOption<'_>
The zone as an option value: Utc, Offset or Named.
Trait Implementations§
impl Copy for TimeZone
impl Eq for TimeZone
impl StructuralPartialEq for TimeZone
Auto Trait Implementations§
impl Freeze for TimeZone
impl RefUnwindSafe for TimeZone
impl Send for TimeZone
impl Sync for TimeZone
impl Unpin for TimeZone
impl UnsafeUnpin for TimeZone
impl UnwindSafe for TimeZone
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