BitShares-Core  7.0.2
BitShares blockchain node software and command-line wallet software
Public Member Functions | Static Public Member Functions | Friends | List of all members
fc::time_point_sec Class Reference

#include <time.hpp>

Public Member Functions

 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 fc::time_point &t)
 
time_point_secoperator+= (uint32_t m)
 
time_point_secoperator+= (microseconds m)
 
time_point_secoperator-= (uint32_t m)
 
time_point_secoperator-= (microseconds m)
 
time_point_sec operator+ (uint32_t offset) const
 
time_point_sec operator- (uint32_t offset) const
 
std::string to_non_delimited_iso_string () const
 
std::string to_iso_string () const
 
 operator std::string () const
 

Static Public Member Functions

static time_point_sec maximum ()
 
static time_point_sec min ()
 
static time_point_sec from_iso_string (const std::string &s)
 

Friends

bool operator< (const time_point_sec &a, const time_point_sec &b)
 
bool operator> (const time_point_sec &a, const time_point_sec &b)
 
bool operator<= (const time_point_sec &a, const time_point_sec &b)
 
bool operator>= (const time_point_sec &a, const time_point_sec &b)
 
bool operator== (const time_point_sec &a, const time_point_sec &b)
 
bool operator!= (const time_point_sec &a, const time_point_sec &b)
 
time_point operator+ (const time_point_sec &t, const microseconds &m)
 
time_point operator- (const time_point_sec &t, const microseconds &m)
 
microseconds operator- (const time_point_sec &t, const time_point_sec &m)
 
microseconds operator- (const time_point &t, const time_point_sec &m)
 

Detailed Description

A lower resolution time_point accurate only to seconds from 1970

Definition at line 74 of file time.hpp.

Constructor & Destructor Documentation

◆ time_point_sec() [1/3]

fc::time_point_sec::time_point_sec ( )
inline

Definition at line 77 of file time.hpp.

◆ time_point_sec() [2/3]

fc::time_point_sec::time_point_sec ( uint32_t  seconds)
inlineexplicit

Definition at line 80 of file time.hpp.

◆ time_point_sec() [3/3]

fc::time_point_sec::time_point_sec ( const time_point t)
inline

Definition at line 83 of file time.hpp.

Member Function Documentation

◆ from_iso_string()

time_point_sec fc::time_point_sec::from_iso_string ( const std::string &  s)
static

Definition at line 35 of file time.cpp.

◆ maximum()

static time_point_sec fc::time_point_sec::maximum ( )
inlinestatic

Definition at line 86 of file time.hpp.

◆ min()

static time_point_sec fc::time_point_sec::min ( )
inlinestatic

Definition at line 87 of file time.hpp.

◆ operator std::string()

fc::time_point_sec::operator std::string ( ) const

Definition at line 30 of file time.cpp.

◆ operator time_point()

fc::time_point_sec::operator time_point ( ) const
inline

Definition at line 89 of file time.hpp.

◆ operator+()

time_point_sec fc::time_point_sec::operator+ ( uint32_t  offset) const
inline

Definition at line 107 of file time.hpp.

◆ operator+=() [1/2]

time_point_sec& fc::time_point_sec::operator+= ( microseconds  m)
inline

Definition at line 104 of file time.hpp.

◆ operator+=() [2/2]

time_point_sec& fc::time_point_sec::operator+= ( uint32_t  m)
inline

Definition at line 103 of file time.hpp.

◆ operator-()

time_point_sec fc::time_point_sec::operator- ( uint32_t  offset) const
inline

Definition at line 108 of file time.hpp.

◆ operator-=() [1/2]

time_point_sec& fc::time_point_sec::operator-= ( microseconds  m)
inline

Definition at line 106 of file time.hpp.

◆ operator-=() [2/2]

time_point_sec& fc::time_point_sec::operator-= ( uint32_t  m)
inline

Definition at line 105 of file time.hpp.

◆ operator=()

time_point_sec fc::time_point_sec::operator= ( const fc::time_point t)
inline

Definition at line 92 of file time.hpp.

◆ sec_since_epoch()

uint32_t fc::time_point_sec::sec_since_epoch ( ) const
inline

Definition at line 90 of file time.hpp.

◆ to_iso_string()

std::string fc::time_point_sec::to_iso_string ( ) const

Definition at line 24 of file time.cpp.

◆ to_non_delimited_iso_string()

std::string fc::time_point_sec::to_non_delimited_iso_string ( ) const

Definition at line 18 of file time.cpp.

Friends And Related Function Documentation

◆ operator!=

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

Definition at line 102 of file time.hpp.

◆ operator+

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

Definition at line 110 of file time.hpp.

◆ operator- [1/3]

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

Definition at line 113 of file time.hpp.

◆ operator- [2/3]

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

Definition at line 111 of file time.hpp.

◆ operator- [3/3]

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

Definition at line 112 of file time.hpp.

◆ operator<

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

Definition at line 97 of file time.hpp.

◆ operator<=

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

Definition at line 99 of file time.hpp.

◆ operator==

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

Definition at line 101 of file time.hpp.

◆ operator>

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

Definition at line 98 of file time.hpp.

◆ operator>=

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

Definition at line 100 of file time.hpp.


The documentation for this class was generated from the following files: