pub struct LongDateTime(/* private fields */);Implementations§
Source§impl LongDateTime
impl LongDateTime
pub const EPOCH: DateTime<Utc>
pub const fn new(datetime: DateTime<Utc>) -> Self
pub const fn datetime(&self) -> Option<DateTime<Utc>>
pub const fn from_epoch_seconds(secs: i64) -> Self
pub const fn epoch_seconds(&self) -> i64
pub const fn from_be_bytes(bytes: [u8; 8]) -> Self
pub const fn to_be_bytes(self) -> [u8; 8]
Trait Implementations§
Source§impl Clone for LongDateTime
impl Clone for LongDateTime
Source§fn clone(&self) -> LongDateTime
fn clone(&self) -> LongDateTime
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LongDateTime
Source§impl Debug for LongDateTime
impl Debug for LongDateTime
Source§impl Default for LongDateTime
impl Default for LongDateTime
impl Eq for LongDateTime
Source§impl Hash for LongDateTime
impl Hash for LongDateTime
Source§impl Ord for LongDateTime
impl Ord for LongDateTime
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for LongDateTime
impl PartialEq for LongDateTime
Source§impl PartialOrd for LongDateTime
impl PartialOrd for LongDateTime
impl StructuralPartialEq for LongDateTime
Auto Trait Implementations§
impl Freeze for LongDateTime
impl RefUnwindSafe for LongDateTime
impl Send for LongDateTime
impl Sync for LongDateTime
impl Unpin for LongDateTime
impl UnsafeUnpin for LongDateTime
impl UnwindSafe for LongDateTime
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