[][src]Struct eosio::TimePoint

pub struct TimePoint(_);

High resolution time point in microseconds https://github.com/EOSIO/eosio.cdt/blob/4985359a30da1f883418b7133593f835927b8046/libraries/eosiolib/core/eosio/time.hpp#L49-L77

Methods

impl TimePoint[src]

#[must_use] pub const fn from_micros(micros: i64) -> Self[src]

#[must_use] pub const fn from_millis(millis: i64) -> Self[src]

#[must_use] pub const fn as_micros(&self) -> i64[src]

Gets the microseconds

#[must_use] pub const fn as_millis(&self) -> i64[src]

Gets the milliseconds

#[must_use] pub const fn as_secs(&self) -> i32[src]

#[must_use] pub const fn as_time_point_sec(&self) -> TimePointSec[src]

Trait Implementations

impl Clone for TimePoint[src]

impl Copy for TimePoint[src]

impl Debug for TimePoint[src]

impl Default for TimePoint[src]

impl Eq for TimePoint[src]

impl From<BlockTimestamp> for TimePoint[src]

impl From<TimePoint> for BlockTimestamp[src]

impl From<TimePoint> for i64[src]

impl From<TimePoint> for TimePointSec[src]

impl From<i64> for TimePoint[src]

impl Hash for TimePoint[src]

impl NumBytes for TimePoint[src]

impl Ord for TimePoint[src]

impl PartialEq<TimePoint> for TimePoint[src]

impl PartialOrd<TimePoint> for TimePoint[src]

impl Read for TimePoint[src]

impl StructuralEq for TimePoint[src]

impl StructuralPartialEq for TimePoint[src]

impl TryFrom<TimePoint> for u64[src]

type Error = TryFromIntError

The type returned in the event of a conversion error.

impl TryFrom<u64> for TimePoint[src]

type Error = TryFromIntError

The type returned in the event of a conversion error.

impl Write for TimePoint[src]

Auto Trait Implementations

impl Send for TimePoint

impl Sync for TimePoint

impl Unpin for TimePoint

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> 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.