eosio::block_timestamp
#include <time.hpp>
Public Functions
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 | |
std::string | to_string() const |
block_timestamp | maximum() |
block_timestamp | min() |
block_timestamp | from_iso_string(const std::string & date_str) |
Detailed Description
class eosio::block_timestamp;
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
inline explicit block_timestamp(
uint32_t s =0
)
function block_timestamp
inline block_timestamp(
const time_point & t
)
function block_timestamp
inline block_timestamp(
const time_point_sec & t
)
function next
inline block_timestamp next() const
function to_time_point
inline time_point to_time_point() const
function operator time_point
inline operator time_point() const
function to_string
inline std::string to_string() const
function maximum
static inline block_timestamp maximum()
function min
static inline block_timestamp min()
function from_iso_string
static inline block_timestamp from_iso_string(
const std::string & date_str
)
Updated on 2022-12-05 at 15:38:08 +0000