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

#include <time.hpp>

Public Member Functions

 time_point (microseconds e=microseconds())
 
 operator std::string () const
 
const microsecondstime_since_epoch () const
 
uint32_t sec_since_epoch () const
 
bool operator> (const time_point &t) const
 
bool operator>= (const time_point &t) const
 
bool operator< (const time_point &t) const
 
bool operator<= (const time_point &t) const
 
bool operator== (const time_point &t) const
 
bool operator!= (const time_point &t) const
 
time_pointoperator+= (const microseconds &m)
 
time_pointoperator-= (const microseconds &m)
 
time_point operator+ (const microseconds &m) const
 
time_point operator- (const microseconds &m) const
 
microseconds operator- (const time_point &m) const
 

Static Public Member Functions

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

Detailed Description

Definition at line 44 of file time.hpp.

Constructor & Destructor Documentation

◆ time_point()

fc::time_point::time_point ( microseconds  e = microseconds())
inlineexplicit

Definition at line 46 of file time.hpp.

Member Function Documentation

◆ from_iso_string()

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

Definition at line 51 of file time.cpp.

◆ maximum()

static time_point fc::time_point::maximum ( )
inlinestatic

Definition at line 48 of file time.hpp.

◆ min()

static time_point fc::time_point::min ( )
inlinestatic

Definition at line 49 of file time.hpp.

◆ now()

time_point fc::time_point::now ( )
static

Definition at line 13 of file time.cpp.

◆ operator std::string()

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

Definition at line 46 of file time.cpp.

◆ operator!=()

bool fc::time_point::operator!= ( const time_point t) const
inline

Definition at line 61 of file time.hpp.

◆ operator+()

time_point fc::time_point::operator+ ( const microseconds m) const
inline

Definition at line 64 of file time.hpp.

◆ operator+=()

time_point& fc::time_point::operator+= ( const microseconds m)
inline

Definition at line 62 of file time.hpp.

◆ operator-() [1/2]

time_point fc::time_point::operator- ( const microseconds m) const
inline

Definition at line 65 of file time.hpp.

◆ operator-() [2/2]

microseconds fc::time_point::operator- ( const time_point m) const
inline

Definition at line 66 of file time.hpp.

◆ operator-=()

time_point& fc::time_point::operator-= ( const microseconds m)
inline

Definition at line 63 of file time.hpp.

◆ operator<()

bool fc::time_point::operator< ( const time_point t) const
inline

Definition at line 58 of file time.hpp.

◆ operator<=()

bool fc::time_point::operator<= ( const time_point t) const
inline

Definition at line 59 of file time.hpp.

◆ operator==()

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

Definition at line 60 of file time.hpp.

◆ operator>()

bool fc::time_point::operator> ( const time_point t) const
inline

Definition at line 56 of file time.hpp.

◆ operator>=()

bool fc::time_point::operator>= ( const time_point t) const
inline

Definition at line 57 of file time.hpp.

◆ sec_since_epoch()

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

Definition at line 55 of file time.hpp.

◆ time_since_epoch()

const microseconds& fc::time_point::time_since_epoch ( ) const
inline

Definition at line 54 of file time.hpp.


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