8 #pragma warning (disable : 4244) 28 int64_t
count()
const {
return _count; }
51 operator std::string()
const;
52 static time_point from_iso_string(
const std::string& s );
81 :utc_seconds(seconds){}
84 :utc_seconds( t.time_since_epoch().
count() / 1000000ll ){}
115 std::string to_non_delimited_iso_string()
const;
116 std::string to_iso_string()
const;
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) bool operator!=(const microseconds &c) const
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")
microseconds minutes(int64_t m)
friend bool operator<(const microseconds &a, const microseconds &b)
int64_t to_seconds() const
microseconds milliseconds(int64_t s)
uint32_t sec_since_epoch() const
Defines types and macros used to provide reflection.
microseconds hours(int64_t h)
friend bool operator>(const microseconds &a, const microseconds &b)
provides stack-based nullable value similar to boost::optional
fc::optional< time_point > otime_point
FC_REFLECT_TYPENAME(fc::log_message)
friend microseconds operator-(const microseconds &l, const microseconds &r)
microseconds days(int64_t d)
time_point_sec(uint32_t seconds)
static time_point_sec maximum()
microseconds(int64_t c=0)
void to_variant(const flat_set< T, A... > &var, variant &vo, uint32_t _max_depth)
microseconds seconds(int64_t s)
const microseconds & time_since_epoch() const
friend bool operator>=(const microseconds &a, const microseconds &b)
stores null, int64, uint64, double, bool, string, std::vector<variant>, and variant_object's.
microseconds & operator+=(const microseconds &c)
microseconds & operator-=(const microseconds &c)
friend bool operator<=(const microseconds &a, const microseconds &b)
void from_variant(const variant &var, flat_set< T, A... > &vo, uint32_t _max_depth)
friend microseconds operator+(const microseconds &l, const microseconds &r)
static time_point_sec min()
static time_point maximum()
time_point_sec(const time_point &t)
time_point(microseconds e=microseconds())
static microseconds maximum()
uint32_t sec_since_epoch() const
bool operator==(const microseconds &c) const