[][src]Struct epoch_cli::Epoch

pub struct Epoch {
    pub datetime: DateTime<Utc>,
}

Fields

datetime: DateTime<Utc>

Methods

impl Epoch[src]

pub fn new(datetime: DateTime<Utc>) -> Epoch[src]

pub fn from_parts(parts: Parts) -> Epoch[src]

pub fn from_epoch_s(epoch_s: i64) -> Epoch[src]

pub fn from_epoch_ms(epoch_ms: i64) -> Epoch[src]

pub fn from_epoch_us(epoch_us: i64) -> Epoch[src]

pub fn from_epoch_ns(epoch_ns: i64) -> Epoch[src]

pub fn epoch_s(&self) -> i64[src]

pub fn epoch_ms(&self) -> i64[src]

pub fn epoch_us(&self) -> i64[src]

pub fn epoch_ns(&self) -> i64[src]

pub fn plus_duration(self, duration: Duration) -> Self[src]

pub fn minus_duration(self, duration: Duration) -> Self[src]

Trait Implementations

impl Debug for Epoch[src]

impl Default for Epoch[src]

impl From<Parts> for Epoch[src]

Auto Trait Implementations

impl RefUnwindSafe for Epoch

impl Send for Epoch

impl Sync for Epoch

impl Unpin for Epoch

impl UnwindSafe for Epoch

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.