class eosio::block_timestamp
Class List > eosio :: block_timestamp
Public Attributes
Public Static Attributes
Public Functions
Public Static Functions
Friends
Detailed Description
This class is used in the block headers to represent the block time It is a parameterised class that takes an Epoch in milliseconds and and an interval in milliseconds and computes the number of slots.
Public Attributes Documentation
variable slot
uint32_t eosio:: block_timestamp:: slot;
Public Static Attributes Documentation
variable block_interval_ms
constexpr int32_t eosio:: block_timestamp:: block_interval_ms;
variable block_timestamp_epoch
constexpr int64_t eosio:: block_timestamp:: block_timestamp_epoch;
Public Functions Documentation
function block_timestamp (1/3)
explicit eosio:: block_timestamp:: block_timestamp (
uint32_t s = 0
)
function block_timestamp (2/3)
eosio:: block_timestamp:: block_timestamp (
const time_point & t
)
function block_timestamp (3/3)
eosio:: block_timestamp:: block_timestamp (
const time_point_sec & t
)
function next
block_timestamp eosio:: block_timestamp:: next ( ) const
function to_time_point
time_point eosio:: block_timestamp:: to_time_point ( ) const
function operator time_point
eosio:: block_timestamp:: operator time_point ( ) const
function operator=
void eosio:: block_timestamp:: operator = (
const time_point & t
)
function operator>
bool eosio:: block_timestamp:: operator > (
const block_timestamp & t
) const
function operator>=
bool eosio:: block_timestamp:: operator >= (
const block_timestamp & t
) const
function operator<
bool eosio:: block_timestamp:: operator < (
const block_timestamp & t
) const
function operator<=
bool eosio:: block_timestamp:: operator <= (
const block_timestamp & t
) const
function operator==
bool eosio:: block_timestamp:: operator == (
const block_timestamp & t
) const
function operator!=
bool eosio:: block_timestamp:: operator != (
const block_timestamp & t
) const
Public Static Functions Documentation
function maximum
static static block_timestamp eosio:: block_timestamp:: maximum ( )
function min
static static block_timestamp eosio:: block_timestamp:: min ( )
Friends Documentation
friend operator<<
template < typename DataStream >
DataStream& operator << (
DataStream & ds,
const block_timestamp & t
)
friend operator>>
template < typename DataStream >
DataStream& operator >> (
DataStream & ds,
block_timestamp & t
)
The documentation for this class was generated from the following file: libraries/eosiolib/time.hpp