pub struct TimePointSec(/* private fields */);
Expand description
A lower resolution TimePoint
accurate only to seconds from 1970
https://github.com/EOSIO/eosio.cdt/blob/4985359a30da1f883418b7133593f835927b8046/libraries/eosiolib/core/eosio/time.hpp#L79-L132
Implementations§
Trait Implementations§
Source§impl Add<TimePointSec> for u32
impl Add<TimePointSec> for u32
Source§type Output = TimePointSec
type Output = TimePointSec
The resulting type after applying the
+
operator.Source§impl Add<u32> for TimePointSec
impl Add<u32> for TimePointSec
Source§impl Clone for TimePointSec
impl Clone for TimePointSec
Source§fn clone(&self) -> TimePointSec
fn clone(&self) -> TimePointSec
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TimePointSec
impl Debug for TimePointSec
Source§impl Default for TimePointSec
impl Default for TimePointSec
Source§fn default() -> TimePointSec
fn default() -> TimePointSec
Returns the “default value” for a type. Read more
Source§impl From<BlockTimestamp> for TimePointSec
impl From<BlockTimestamp> for TimePointSec
Source§fn from(bt: BlockTimestamp) -> Self
fn from(bt: BlockTimestamp) -> Self
Converts to this type from the input type.
Source§impl From<TimePoint> for TimePointSec
impl From<TimePoint> for TimePointSec
Source§impl From<TimePointSec> for BlockTimestamp
impl From<TimePointSec> for BlockTimestamp
Source§fn from(tps: TimePointSec) -> Self
fn from(tps: TimePointSec) -> Self
Converts to this type from the input type.
Source§impl From<TimePointSec> for u32
impl From<TimePointSec> for u32
Source§fn from(t: TimePointSec) -> Self
fn from(t: TimePointSec) -> Self
Converts to this type from the input type.
Source§impl From<u32> for TimePointSec
impl From<u32> for TimePointSec
Source§impl Hash for TimePointSec
impl Hash for TimePointSec
Source§impl NumBytes for TimePointSec
impl NumBytes for TimePointSec
Source§impl Ord for TimePointSec
impl Ord for TimePointSec
Source§fn cmp(&self, other: &TimePointSec) -> Ordering
fn cmp(&self, other: &TimePointSec) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TimePointSec
impl PartialEq for TimePointSec
Source§impl PartialOrd for TimePointSec
impl PartialOrd for TimePointSec
Source§impl Read for TimePointSec
impl Read for TimePointSec
Source§impl Write for TimePointSec
impl Write for TimePointSec
impl Copy for TimePointSec
impl Eq for TimePointSec
impl StructuralPartialEq for TimePointSec
Auto Trait Implementations§
impl Freeze for TimePointSec
impl RefUnwindSafe for TimePointSec
impl Send for TimePointSec
impl Sync for TimePointSec
impl Unpin for TimePointSec
impl UnwindSafe for TimePointSec
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more