class eosio::block_timestamp
Class List > eosio :: block_timestamp
Public Functions
Type | Name |
---|---|
block_timestamp (uint32_t s = 0) | |
block_timestamp (const time_point & t) | |
block_timestamp (const time_point_sec & t) | |
block_timestamp | next () const |
time_point | to_time_point () const |
operator time_point () const |
Public Static Functions
Type | Name |
---|---|
static block_timestamp | maximum () |
static block_timestamp | min () |
Friends
Type | Name |
---|---|
friend DataStream & | operator<< |
friend DataStream & | operator>> |
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 an interval in milliseconds and computes the number of slots.
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
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/core/eosio/time.hpp