pub struct Timestamp<T> { /* private fields */ }Implementations§
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> Ord for Timestamp<T>
impl<T> Ord for Timestamp<T>
Source§impl<T> PartialOrd for Timestamp<T>
impl<T> PartialOrd for Timestamp<T>
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<&mut Duration> for Timestamp<T>
impl<T> SubAssign<&mut Duration> for Timestamp<T>
Source§fn sub_assign(&mut self, rhs: &mut Duration)
fn sub_assign(&mut self, rhs: &mut 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 more