BitShares-Core  4.0.0
BitShares blockchain implementation and command-line interface 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

fc::time_point_sec::time_point_sec ( )
inline

Definition at line 77 of file time.hpp.

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

Definition at line 80 of file time.hpp.

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

Definition at line 83 of file time.hpp.

Member Function Documentation

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

Definition at line 35 of file time.cpp.

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

Definition at line 86 of file time.hpp.

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

Definition at line 87 of file time.hpp.

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

Definition at line 30 of file time.cpp.

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

Definition at line 89 of file time.hpp.

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

Definition at line 107 of file time.hpp.

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

Definition at line 103 of file time.hpp.

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

Definition at line 104 of file time.hpp.

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

Definition at line 108 of file time.hpp.

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

Definition at line 105 of file time.hpp.

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

Definition at line 106 of file time.hpp.

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

Definition at line 92 of file time.hpp.

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

Definition at line 90 of file time.hpp.

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

Definition at line 24 of file time.cpp.

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

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

Definition at line 102 of file time.hpp.

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

Definition at line 110 of file time.hpp.

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

Definition at line 111 of file time.hpp.

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

Definition at line 112 of file time.hpp.

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

Definition at line 113 of file time.hpp.

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

Definition at line 97 of file time.hpp.

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

Definition at line 99 of file time.hpp.

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

Definition at line 101 of file time.hpp.

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

Definition at line 98 of file time.hpp.

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: