Type Alias irox_time::epoch::UnixTimestamp
source · pub type UnixTimestamp = Timestamp<UnixEpoch>;Expand description
Represents a duration offset from the UNIX_EPOCH.
Aliased Type§
struct UnixTimestamp { /* private fields */ }Implementations§
source§impl UnixTimestamp
impl UnixTimestamp
source§impl UnixTimestamp
impl UnixTimestamp
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
Trait Implementations§
source§impl Default for UnixTimestamp
impl Default for UnixTimestamp
source§impl From<&Date> for UnixTimestamp
impl From<&Date> for UnixTimestamp
source§impl From<&UTCDateTime> for UnixTimestamp
impl From<&UTCDateTime> for UnixTimestamp
source§fn from(value: &UTCDateTime) -> Self
fn from(value: &UTCDateTime) -> Self
Converts to this type from the input type.
source§impl From<Duration> for UnixTimestamp
impl From<Duration> for UnixTimestamp
source§impl From<JulianDayNumber<JulianEpoch>> for UnixTimestamp
impl From<JulianDayNumber<JulianEpoch>> for UnixTimestamp
source§fn from(value: JulianDate) -> Self
fn from(value: JulianDate) -> Self
Converts to this type from the input type.
source§impl From<UTCDateTime> for UnixTimestamp
impl From<UTCDateTime> for UnixTimestamp
source§fn from(value: UTCDateTime) -> Self
fn from(value: UTCDateTime) -> Self
Converts to this type from the input type.