[−][src]Struct practicaltimestamp::UnixTimestamp
Implementations
impl UnixTimestamp
[src]
pub const MIN: UnixTimestamp
[src]
pub const MAX: UnixTimestamp
[src]
pub fn now() -> Self
[src]
pub const fn checked_from_unix_timestamp(timestamp: i64) -> Option<Self>
[src]
pub const fn from_unix_timestamp(timestamp: i64) -> TimestampResult
[src]
pub const fn unix_timestamp(self) -> i64
[src]
pub const fn midnight(self) -> Self
[src]
pub const fn seconds_since_midnight(self) -> i64
[src]
pub const fn checked_add(self, seconds: i64) -> Option<Self>
[src]
pub const fn checked_sub(self, seconds: i64) -> Option<Self>
[src]
pub const fn saturating_add(self, seconds: i64) -> Self
[src]
pub const fn saturating_sub(self, seconds: i64) -> Self
[src]
pub const fn checked_from_year_month_day(
year: u16,
month: u8,
day: u8
) -> Option<Self>
[src]
year: u16,
month: u8,
day: u8
) -> Option<Self>
pub const fn from_year_month_day(
year: u16,
month: u8,
day: u8
) -> TimestampResult
[src]
year: u16,
month: u8,
day: u8
) -> TimestampResult
pub const fn to_year_month_day(self) -> (u16, u8, u8)
[src]
pub const fn checked_from_year_ordinal(year: u16, ordinal: u16) -> Option<Self>
[src]
pub const fn from_year_ordinal(year: u16, ordinal: u16) -> TimestampResult
[src]
pub const fn to_year_ordinal(self) -> (u16, u16)
[src]
pub const fn checked_from_julian_day_number(
julian_day_number: i32
) -> Option<Self>
[src]
julian_day_number: i32
) -> Option<Self>
pub const fn from_julian_day_number(julian_day_number: i32) -> TimestampResult
[src]
pub const fn julian_day_number(self) -> i32
[src]
pub const fn weekday(self) -> Weekday
[src]
Trait Implementations
impl Clone for UnixTimestamp
[src]
fn clone(&self) -> UnixTimestamp
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for UnixTimestamp
[src]
impl Debug for UnixTimestamp
[src]
impl From<SystemTime> for UnixTimestamp
[src]
fn from(system_time: SystemTime) -> Self
[src]
impl From<UnixTimestamp> for SystemTime
[src]
fn from(timestamp: UnixTimestamp) -> Self
[src]
impl PartialEq<UnixTimestamp> for UnixTimestamp
[src]
fn eq(&self, other: &UnixTimestamp) -> bool
[src]
fn ne(&self, other: &UnixTimestamp) -> bool
[src]
impl PartialOrd<UnixTimestamp> for UnixTimestamp
[src]
fn partial_cmp(&self, other: &UnixTimestamp) -> Option<Ordering>
[src]
fn lt(&self, other: &UnixTimestamp) -> bool
[src]
fn le(&self, other: &UnixTimestamp) -> bool
[src]
fn gt(&self, other: &UnixTimestamp) -> bool
[src]
fn ge(&self, other: &UnixTimestamp) -> bool
[src]
impl StructuralPartialEq for UnixTimestamp
[src]
Auto Trait Implementations
impl RefUnwindSafe for UnixTimestamp
impl Send for UnixTimestamp
impl Sync for UnixTimestamp
impl Unpin for UnixTimestamp
impl UnwindSafe for UnixTimestamp
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,