Menu

class eosio::time_point_sec

Class List > eosio :: time_point_sec

Public Attributes

Type Name
uint32_t utc_seconds

Public Functions

Type Name
time_point_sec ()
time_point_sec (uint32_t seconds)
time_point_sec (const time_point & t)
operator time_point () const
uint32_t sec_since_epoch () const
time_point_sec ()
time_point_sec (uint32_t seconds)
time_point_sec (const time_point & t)
operator time_point () const
uint32_t sec_since_epoch () const
time_point_sec operator= (const eosio::time_point & t)
time_point_sec & operator+= (uint32_t m)
time_point_sec & operator+= (microseconds m)
time_point_sec & operator+= (time_point_sec m)
time_point_sec & operator -= (uint32_t m)
time_point_sec & operator -= (microseconds m)
time_point_sec & operator -= (time_point_sec m)
time_point_sec operator+ (uint32_t offset) const
time_point_sec operator - (uint32_t offset) const

Public Static Functions

Type Name
static time_point_sec maximum ()
static time_point_sec min ()
static time_point_sec maximum ()
static time_point_sec min ()

Friends

Type Name
friend DataStream & operator<<
friend DataStream & operator >>
friend bool operator<
friend bool operator >
friend bool operator<=
friend bool operator >=
friend bool operator==
friend bool operator !=
friend time_point operator+
friend time_point operator -
friend microseconds operator -
friend microseconds operator -
friend DataStream & operator<<
friend DataStream & operator >>

Detailed Description

A lower resolution time_point accurate only to seconds from 1970

Public Attributes Documentation

variable utc_seconds

uint32_t eosio::time_point_sec::utc_seconds;

Public Functions Documentation

function time_point_sec (4/6)

eosio::time_point_sec::time_point_sec()

function time_point_sec (5/6)

explicit eosio::time_point_sec::time_point_sec(
    uint32_t seconds
)

function time_point_sec (6/6)

eosio::time_point_sec::time_point_sec(
    const time_point & t
)

function operator time_point (2/2)

eosio::time_point_sec::operator time_point() const

function sec_since_epoch (2/2)

uint32_t eosio::time_point_sec::sec_since_epoch() const

function time_point_sec (4/6)

eosio::time_point_sec::time_point_sec()

function time_point_sec (5/6)

explicit eosio::time_point_sec::time_point_sec(
    uint32_t seconds
)

function time_point_sec (6/6)

eosio::time_point_sec::time_point_sec(
    const time_point & t
)

function operator time_point (2/2)

eosio::time_point_sec::operator time_point() const

function sec_since_epoch (2/2)

uint32_t eosio::time_point_sec::sec_since_epoch() const

function operator=

time_point_sec eosio::time_point_sec::operator=(
    const eosio::time_point & t
)

function operator+= (1/3)

time_point_sec& eosio::time_point_sec::operator+=(
    uint32_t m
)

function operator+= (2/3)

time_point_sec& eosio::time_point_sec::operator+=(
    microseconds m
)

function operator+= (3/3)

time_point_sec& eosio::time_point_sec::operator+=(
    time_point_sec m
)

function operator -= (1/3)

time_point_sec& eosio::time_point_sec::operator -=(
    uint32_t m
)

function operator -= (2/3)

time_point_sec& eosio::time_point_sec::operator -=(
    microseconds m
)

function operator -= (3/3)

time_point_sec& eosio::time_point_sec::operator -=(
    time_point_sec m
)

function operator+ (1/2)

time_point_sec eosio::time_point_sec::operator+(
    uint32_t offset
) const

function operator - (1/4)

time_point_sec eosio::time_point_sec::operator -(
    uint32_t offset
) const

Public Static Functions Documentation

function maximum (2/2)

static static time_point_sec eosio::time_point_sec::maximum()

function min (2/2)

static static time_point_sec eosio::time_point_sec::min()

function maximum (2/2)

static static time_point_sec eosio::time_point_sec::maximum()

function min (2/2)

static static time_point_sec eosio::time_point_sec::min()

Friends Documentation

friend operator<< (2/2)

template<typename DataStream>
DataStream& operator<<(
    DataStream & ds,
    const time_point_sec & t
)

friend operator >> (2/2)

template<typename DataStream>
DataStream& operator >>(
    DataStream & ds,
    time_point_sec & t
)

friend operator<

bool operator<(
    const time_point_sec & a,
    const time_point_sec & b
)

friend operator >

bool operator >(
    const time_point_sec & a,
    const time_point_sec & b
)

friend operator<=

bool operator<=(
    const time_point_sec & a,
    const time_point_sec & b
)

friend operator >=

bool operator >=(
    const time_point_sec & a,
    const time_point_sec & b
)

friend operator==

bool operator==(
    const time_point_sec & a,
    const time_point_sec & b
)

friend operator !=

bool operator !=(
    const time_point_sec & a,
    const time_point_sec & b
)

friend operator+ (2/2)

time_point operator+(
    const time_point_sec & t,
    const microseconds & m
)

friend operator - (2/4)

time_point operator -(
    const time_point_sec & t,
    const microseconds & m
)

friend operator - (3/4)

microseconds operator -(
    const time_point_sec & t,
    const time_point_sec & m
)

friend operator - (4/4)

microseconds operator -(
    const time_point & t,
    const time_point_sec & m
)

friend operator<< (2/2)

template<typename DataStream>
DataStream& operator<<(
    DataStream & ds,
    const time_point_sec & t
)

friend operator >> (2/2)

template<typename DataStream>
DataStream& operator >>(
    DataStream & ds,
    time_point_sec & t
)

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