pub struct UnixTimestamp(pub i64);
Expand description
In seconds since 1970-01-01 00:00:00 UTC.
Tuple Fields§
§0: i64
Trait Implementations§
Source§impl Clone for UnixTimestamp
impl Clone for UnixTimestamp
Source§fn clone(&self) -> UnixTimestamp
fn clone(&self) -> UnixTimestamp
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for UnixTimestamp
impl Debug for UnixTimestamp
Source§impl<Tz: UnambiguousTimeZone> From<DateTime<Tz>> for UnixTimestamp
impl<Tz: UnambiguousTimeZone> From<DateTime<Tz>> for UnixTimestamp
Source§impl<Tz: Default + TimeZone> From<UnixTimestamp> for DateTime<Tz>
impl<Tz: Default + TimeZone> From<UnixTimestamp> for DateTime<Tz>
Source§fn from(u: UnixTimestamp) -> Self
fn from(u: UnixTimestamp) -> Self
Converts to this type from the input type.
Source§impl Ord for UnixTimestamp
impl Ord for UnixTimestamp
Source§fn cmp(&self, other: &UnixTimestamp) -> Ordering
fn cmp(&self, other: &UnixTimestamp) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for UnixTimestamp
impl PartialEq for UnixTimestamp
Source§impl PartialOrd for UnixTimestamp
impl PartialOrd for UnixTimestamp
impl Copy for UnixTimestamp
impl Eq for UnixTimestamp
impl StructuralPartialEq for UnixTimestamp
Auto Trait Implementations§
impl Freeze for UnixTimestamp
impl RefUnwindSafe for UnixTimestamp
impl Send for UnixTimestamp
impl Sync for UnixTimestamp
impl Unpin for UnixTimestamp
impl UnwindSafe for UnixTimestamp
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