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 ()

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 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 block_timestamp eosio::block_timestamp::maximum ()

function min

static block_timestamp eosio::block_timestamp::min ()

The documentation for this class was generated from the following file: in/eosio.cdt/libraries/eosiolib/core/eosio/time.hpp

results matching ""

    No results matching ""