BitShares-Core  5.0.0
BitShares blockchain implementation and command-line interface software
Classes | Namespaces | Typedefs | Functions
time.hpp File Reference
#include <stdint.h>
#include <string>
#include <fc/optional.hpp>
#include <fc/reflect/reflect.hpp>

Go to the source code of this file.

Classes

class  fc::microseconds
 
class  fc::time_point
 
class  fc::time_point_sec
 

Namespaces

 fc
 

Typedefs

typedef fc::optional< time_point > fc::otime_point
 

Functions

microseconds fc::seconds (int64_t s)
 
microseconds fc::milliseconds (int64_t s)
 
microseconds fc::minutes (int64_t m)
 
microseconds fc::hours (int64_t h)
 
microseconds fc::days (int64_t d)
 
void fc::to_variant (const fc::microseconds &, fc::variant &, uint32_t max_depth=1)
 
void fc::from_variant (const fc::variant &, fc::microseconds &, uint32_t max_depth=1)
 
std::string fc::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")
 
std::string fc::get_approximate_relative_time_string (const time_point &event_time, const time_point &relative_to_time=fc::time_point::now(), const std::string &ago=" ago")