[][src]Struct tendermint::time::Time

pub struct Time(_);

Methods

impl Time[src]

pub fn now() -> Self[src]

Get a Timestamp representing the current wall clock time

pub fn unix_epoch() -> Self[src]

Get the UNIX_EPOCH time ("1970-01-01 00:00:00 UTC") as a Timestamp

pub fn duration_since(&self, other: Time) -> Result<Duration, Error>[src]

Calculate the amount of time which has passed since another Timestamp as a std::time::Duration

pub fn parse_from_rfc3339(s: &str) -> Result<Time, Error>[src]

Parse a timestamp from an RFC 3339 date

pub fn to_system_time(&self) -> Result<SystemTime, Error>[src]

Convert this timestamp to a SystemTime

Trait Implementations

impl From<Time> for TimeMsg[src]

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

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

impl From<SystemTime> for Time[src]

impl From<Time> for SystemTime[src]

impl From<TAI64N> for Time[src]

impl From<Time> for TAI64N[src]

impl Clone for Time[src]

impl Copy for Time[src]

impl Eq for Time[src]

impl Ord for Time[src]

impl PartialEq<Time> for Time[src]

impl PartialOrd<Time> for Time[src]

impl Debug for Time[src]

impl Serialize for Time[src]

impl<'de> Deserialize<'de> for Time[src]

Auto Trait Implementations

impl Send for Time

impl Sync for Time

impl Unpin for Time

impl UnwindSafe for Time

impl RefUnwindSafe for Time

Blanket Implementations

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Typeable for T where
    T: Any