BitShares-Core
7.0.2
BitShares blockchain node software and command-line wallet software
|
Go to the documentation of this file.
8 #pragma warning (disable : 4244)
28 int64_t
count()
const {
return _count; }
51 operator std::string()
const;
84 :utc_seconds( t.time_since_epoch().count() / 1000000ll ){}
118 operator std::string()
const;
122 uint32_t utc_seconds;
132 const std::string& ago =
" ago");
135 const std::string& ago =
" ago");
144 #pragma warning (pop)
uint32_t sec_since_epoch() const
microseconds milliseconds(int64_t s)
friend bool operator>(const time_point_sec &a, const time_point_sec &b)
time_point_sec & operator+=(uint32_t m)
static time_point from_iso_string(const std::string &s)
time_point_sec & operator-=(uint32_t m)
time_point_sec operator-(uint32_t offset) const
bool operator<=(const time_point &t) const
FC_REFLECT_TYPENAME(fc::log_message)
uint32_t sec_since_epoch() const
static time_point_sec from_iso_string(const std::string &s)
friend bool operator<(const time_point_sec &a, const time_point_sec &b)
friend bool operator<=(const time_point_sec &a, const time_point_sec &b)
friend microseconds operator+(const microseconds &l, const microseconds &r)
time_point & operator+=(const microseconds &m)
static time_point_sec maximum()
time_point operator-(const microseconds &m) const
void from_variant(const variant &var, flat_set< T, A... > &vo, uint32_t _max_depth)
microseconds(int64_t c=0)
Defines types and macros used to provide reflection.
friend bool operator==(const time_point_sec &a, const time_point_sec &b)
microseconds seconds(int64_t s)
static microseconds maximum()
fc::optional< time_point > otime_point
const microseconds & time_since_epoch() const
friend bool operator!=(const time_point_sec &a, const time_point_sec &b)
bool operator!=(const time_point &t) const
microseconds days(int64_t d)
bool operator==(const microseconds &c) const
bool operator!=(const microseconds &c) const
microseconds & operator+=(const microseconds &c)
microseconds & operator-=(const microseconds &c)
time_point_sec(uint32_t seconds)
bool operator<(const time_point &t) const
void to_variant(const flat_set< T, A... > &var, variant &vo, uint32_t _max_depth)
friend bool operator<(const microseconds &a, const microseconds &b)
microseconds minutes(int64_t m)
microseconds hours(int64_t h)
int64_t to_seconds() const
friend bool operator>=(const time_point_sec &a, const time_point_sec &b)
std::string to_non_delimited_iso_string() const
friend microseconds operator-(const microseconds &l, const microseconds &r)
time_point(microseconds e=microseconds())
std::string get_approximate_relative_time_string(const time_point_sec &event_time, const time_point_sec &relative_to_time=fc::time_point::now(), const std::string &ago=" ago")
stores null, int64, uint64, double, bool, string, std::vector<variant>, and variant_object's.
static time_point_sec min()
static time_point maximum()
time_point_sec(const time_point &t)
friend bool operator>=(const microseconds &a, const microseconds &b)
time_point_sec operator=(const fc::time_point &t)
time_point_sec operator+(uint32_t offset) const
bool operator>(const time_point &t) const
time_point operator+(const microseconds &m) const
bool operator>=(const time_point &t) const
provides stack-based nullable value similar to boost::optional
friend bool operator<=(const microseconds &a, const microseconds &b)
bool operator==(const time_point &t) const
friend bool operator>(const microseconds &a, const microseconds &b)
time_point & operator-=(const microseconds &m)
std::string to_iso_string() const