pub enum Timezone {
Utc,
Local,
}Expand description
Timezone used for rotation timestamps and filenames.
Variants§
Implementations§
Source§impl Timezone
impl Timezone
Sourcepub fn now(self) -> DateTime<FixedOffset>
pub fn now(self) -> DateTime<FixedOffset>
Returns the current time in this timezone as a FixedOffset.
Sourcepub fn offset(self) -> FixedOffset
pub fn offset(self) -> FixedOffset
Returns the timezone offset used for formatting.
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