pub struct Timestamp<T> { /* private fields */ }Implementations§
source§impl Timestamp<UnixEpoch>
impl Timestamp<UnixEpoch>
source§impl Timestamp<UnixEpoch>
impl Timestamp<UnixEpoch>
sourcepub const fn from_offset(offset: Duration) -> UnixTimestamp
pub const fn from_offset(offset: Duration) -> UnixTimestamp
Creates a new timestamp given the specified offset
sourcepub const fn from_seconds(seconds: u32) -> UnixTimestamp
pub const fn from_seconds(seconds: u32) -> UnixTimestamp
Creates a new timestamp given the specified number of seconds
sourcepub const fn from_seconds_f64(seconds: f64) -> UnixTimestamp
pub const fn from_seconds_f64(seconds: f64) -> UnixTimestamp
Creates a new timestamp given the specified number of fractional seconds
source§impl Timestamp<GPSEpoch>
impl Timestamp<GPSEpoch>
sourcepub const fn from_offset(offset: Duration) -> GPSTimestamp
pub const fn from_offset(offset: Duration) -> GPSTimestamp
Creates a new timestamp given the specified offset
sourcepub const fn from_seconds(seconds: u32) -> GPSTimestamp
pub const fn from_seconds(seconds: u32) -> GPSTimestamp
Creates a new timestamp given the specified number of seconds
sourcepub const fn from_seconds_f64(seconds: f64) -> GPSTimestamp
pub const fn from_seconds_f64(seconds: f64) -> GPSTimestamp
Creates a new timestamp given the specified number of fractional seconds
source§impl Timestamp<GregorianEpoch>
impl Timestamp<GregorianEpoch>
sourcepub const fn from_offset(offset: Duration) -> GregorianTimestamp
pub const fn from_offset(offset: Duration) -> GregorianTimestamp
Creates a new timestamp given the specified offset
sourcepub const fn from_seconds(seconds: u32) -> GregorianTimestamp
pub const fn from_seconds(seconds: u32) -> GregorianTimestamp
Creates a new timestamp given the specified number of seconds
sourcepub const fn from_seconds_f64(seconds: f64) -> GregorianTimestamp
pub const fn from_seconds_f64(seconds: f64) -> GregorianTimestamp
Creates a new timestamp given the specified number of fractional seconds
source§impl Timestamp<WindowsEpoch>
impl Timestamp<WindowsEpoch>
sourcepub const fn from_offset(offset: Duration) -> WindowsNTTimestamp
pub const fn from_offset(offset: Duration) -> WindowsNTTimestamp
Creates a new timestamp given the specified offset
sourcepub const fn from_seconds(seconds: u32) -> WindowsNTTimestamp
pub const fn from_seconds(seconds: u32) -> WindowsNTTimestamp
Creates a new timestamp given the specified number of seconds
sourcepub const fn from_seconds_f64(seconds: f64) -> WindowsNTTimestamp
pub const fn from_seconds_f64(seconds: f64) -> WindowsNTTimestamp
Creates a new timestamp given the specified number of fractional seconds
source§impl Timestamp<PrimeEpoch>
impl Timestamp<PrimeEpoch>
sourcepub const fn from_offset(offset: Duration) -> PrimeTimestamp
pub const fn from_offset(offset: Duration) -> PrimeTimestamp
Creates a new timestamp given the specified offset
sourcepub const fn from_seconds(seconds: u32) -> PrimeTimestamp
pub const fn from_seconds(seconds: u32) -> PrimeTimestamp
Creates a new timestamp given the specified number of seconds
sourcepub const fn from_seconds_f64(seconds: f64) -> PrimeTimestamp
pub const fn from_seconds_f64(seconds: f64) -> PrimeTimestamp
Creates a new timestamp given the specified number of fractional seconds
Trait Implementations§
source§impl<T> AddAssign<&Duration> for Timestamp<T>
impl<T> AddAssign<&Duration> for Timestamp<T>
source§fn add_assign(&mut self, rhs: &Duration)
fn add_assign(&mut self, rhs: &Duration)
+= operation. Read moresource§impl<T> AddAssign<Duration> for Timestamp<T>
impl<T> AddAssign<Duration> for Timestamp<T>
source§fn add_assign(&mut self, rhs: Duration)
fn add_assign(&mut self, rhs: Duration)
+= operation. Read moresource§impl From<&Timestamp<UnixEpoch>> for Date
impl From<&Timestamp<UnixEpoch>> for Date
source§fn from(value: &UnixTimestamp) -> Self
fn from(value: &UnixTimestamp) -> Self
source§impl From<&Timestamp<UnixEpoch>> for UTCDateTime
impl From<&Timestamp<UnixEpoch>> for UTCDateTime
source§fn from(value: &UnixTimestamp) -> Self
fn from(value: &UnixTimestamp) -> Self
source§impl From<Timestamp<UnixEpoch>> for JulianDate
impl From<Timestamp<UnixEpoch>> for JulianDate
source§fn from(value: UnixTimestamp) -> Self
fn from(value: UnixTimestamp) -> Self
source§impl From<Timestamp<UnixEpoch>> for UTCDateTime
impl From<Timestamp<UnixEpoch>> for UTCDateTime
source§fn from(value: UnixTimestamp) -> Self
fn from(value: UnixTimestamp) -> Self
source§impl<T> SubAssign<&Duration> for Timestamp<T>
impl<T> SubAssign<&Duration> for Timestamp<T>
source§fn sub_assign(&mut self, rhs: &Duration)
fn sub_assign(&mut self, rhs: &Duration)
-= operation. Read moresource§impl<T> SubAssign<Duration> for Timestamp<T>
impl<T> SubAssign<Duration> for Timestamp<T>
source§fn sub_assign(&mut self, rhs: Duration)
fn sub_assign(&mut self, rhs: Duration)
-= operation. Read moreimpl<T: Copy> Copy for Timestamp<T>
impl<T> StructuralPartialEq for Timestamp<T>
Auto Trait Implementations§
impl<T> Freeze for Timestamp<T>
impl<T> RefUnwindSafe for Timestamp<T>where
T: RefUnwindSafe,
impl<T> Send for Timestamp<T>where
T: Send,
impl<T> Sync for Timestamp<T>where
T: Sync,
impl<T> Unpin for Timestamp<T>where
T: Unpin,
impl<T> UnwindSafe for Timestamp<T>where
T: UnwindSafe,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)