Struct gregor::UnixTimestamp [] [src]

pub struct UnixTimestamp(_);

In seconds since 1970-01-01 00:00:00 UTC.

Trait Implementations

impl Clone for UnixTimestamp
[src]

fn clone(&self) -> UnixTimestamp

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Copy for UnixTimestamp
[src]

impl PartialEq for UnixTimestamp
[src]

fn eq(&self, __arg_0: &UnixTimestamp) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &UnixTimestamp) -> bool

This method tests for !=.

impl Eq for UnixTimestamp
[src]

impl Debug for UnixTimestamp
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl From<DateTime<Utc>> for UnixTimestamp
[src]

fn from(datetime: DateTime<Utc>) -> Self

Performs the conversion.