Menu

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

Friends

Type Name
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-

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 (1/3)

eosio::time_point_sec::time_point_sec()

function time_point_sec (2/3)

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

function time_point_sec (3/3)

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

function operator time_point

eosio::time_point_sec::operator time_point() const

function sec_since_epoch

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

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

function min

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

Friends Documentation

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
)

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