20 #ifndef RIPPLE_BASICS_CHRONO_H_INCLUDED
21 #define RIPPLE_BASICS_CHRONO_H_INCLUDED
23 #include <date/date.h>
25 #include <ripple/beast/clock/abstract_clock.h>
26 #include <ripple/beast/clock/basic_seconds_clock.h>
27 #include <ripple/beast/clock/manual_clock.h>
43 using weeks = std::chrono::
44 duration<int, std::ratio_multiply<days::period, std::ratio<7>>>;
57 date::sys_days{date::year{2000} / 1 / 1} -
58 date::sys_days{date::year{1970} / 1 / 1};
75 template <
class Duration>
79 return date::format(
"%Y-%b-%d %T %Z", tp);
91 template <
class Duration>
96 return date::format(
"%FT%TZ", tp);
123 using Facade = Clock::Clock;
124 return beast::get_abstract_clock<Facade, Clock>();