pub struct Timezone(/* private fields */);
Expand description
A reference to a timezone resource.
Implementations§
Source§impl Timezone
impl Timezone
Sourcepub const fn new(ambient_authority: AmbientAuthority) -> Self
pub const fn new(ambient_authority: AmbientAuthority) -> Self
Constructs a new instance of Self
.
§Ambient Authority
This uses ambient authority to accesses clocks.
Sourcepub fn timezone_name(&self) -> Result<String, TimezoneError>
pub fn timezone_name(&self) -> Result<String, TimezoneError>
Returns the combined date and time with timezone.
Converts NaiveTime to DateTime
Auto Trait Implementations§
impl Freeze for Timezone
impl RefUnwindSafe for Timezone
impl Send for Timezone
impl Sync for Timezone
impl Unpin 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