7 #pragma warning (disable : 4244)
79 :utc_seconds(seconds){}
82 :utc_seconds( t.time_since_epoch().
count() / 1000000ll ){}
130 const std::string& ago =
" ago");
133 const std::string& ago =
" ago");
142 #pragma warning (pop)
constexpr microseconds(int64_t c=0)
constexpr bool operator!=(const microseconds &c) const
constexpr microseconds & operator-=(const microseconds &c)
constexpr int64_t to_seconds() const
friend constexpr bool operator>=(const microseconds &a, const microseconds &b)
friend constexpr bool operator>(const microseconds &a, const microseconds &b)
constexpr int64_t count() const
constexpr bool operator==(const microseconds &c) const
friend constexpr microseconds operator+(const microseconds &l, const microseconds &r)
friend constexpr microseconds operator-(const microseconds &l, const microseconds &r)
constexpr microseconds & operator+=(const microseconds &c)
constexpr friend bool operator<=(const microseconds &a, const microseconds &b)
constexpr friend bool operator<(const microseconds &a, const microseconds &b)
static constexpr microseconds maximum()
friend constexpr time_point operator-(const time_point_sec &t, const microseconds &m)
constexpr friend bool operator==(const time_point_sec &a, const time_point_sec &b)
friend constexpr time_point operator+(const time_point_sec &t, const microseconds &m)
constexpr time_point_sec()
constexpr friend bool operator!=(const time_point_sec &a, const time_point_sec &b)
static constexpr time_point_sec min()
static constexpr time_point_sec maximum()
constexpr friend bool operator>(const time_point_sec &a, const time_point_sec &b)
constexpr time_point_sec & operator+=(uint32_t m)
fc::string to_iso_string() const
constexpr uint32_t sec_since_epoch() const
constexpr time_point_sec & operator-=(uint32_t m)
static time_point_sec from_iso_string(const fc::string &s)
constexpr friend bool operator<=(const time_point_sec &a, const time_point_sec &b)
constexpr time_point_sec(const time_point &t)
constexpr friend bool operator<(const time_point_sec &a, const time_point_sec &b)
constexpr friend bool operator>=(const time_point_sec &a, const time_point_sec &b)
fc::string to_non_delimited_iso_string() const
constexpr time_point_sec(uint32_t seconds)
constexpr time_point_sec operator=(const fc::time_point &t)
constexpr bool operator<(const time_point &t) const
constexpr bool operator<=(const time_point &t) const
constexpr time_point & operator-=(const microseconds &m)
constexpr uint32_t sec_since_epoch() const
static constexpr time_point min()
constexpr time_point & operator+=(const microseconds &m)
constexpr time_point operator-(const microseconds &m) const
constexpr time_point(microseconds e=microseconds())
constexpr const microseconds & time_since_epoch() const
constexpr bool operator!=(const time_point &t) const
constexpr bool operator>=(const time_point &t) const
static time_point from_iso_string(const fc::string &s)
constexpr time_point operator+(const microseconds &m) const
constexpr bool operator>(const time_point &t) const
static constexpr time_point maximum()
constexpr bool operator==(const time_point &t) const
stores null, int64, uint64, double, bool, string, std::vector<variant>, and variant_object's.
std::optional< time_point > otime_point
constexpr microseconds hours(int64_t h)
constexpr microseconds milliseconds(int64_t s)
constexpr microseconds seconds(int64_t s)
constexpr microseconds minutes(int64_t m)
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")
void from_variant(const fc::variant &v, sysio::chain::chain_id_type &cid)
constexpr microseconds days(int64_t d)
void to_variant(const sysio::chain::shared_public_key &var, fc::variant &vo)
const GenericPointer< typename T::ValueType > T2 T::AllocatorType & a
#define FC_REFLECT_TYPENAME(TYPE)