#include "config_attribute_value.hpp"
#include <chrono>
#include <iomanip>
#include <sstream>
#include <string_view>
Go to the source code of this file.
Namespaces | |
chrono | |
chrono::format | |
Helper types to be used with deconstruct_duration. | |
Typedefs | |
using | chrono::days = std::chrono::duration< int, std::ratio< 86400 > > |
using | chrono::weeks = std::chrono::duration< int, std::ratio< 604800 > > |
using | chrono::months = std::chrono::duration< int, std::ratio< 2629746 > > |
using | chrono::years = std::chrono::duration< int, std::ratio< 31556952 > > |
Functions | |
auto | chrono::parse_timestamp (long long val) |
auto | chrono::parse_timestamp (const config_attribute_value &val) |
auto | chrono::serialize_timestamp (const std::chrono::system_clock::time_point &time) |
auto | chrono::format_local_timestamp (const std::chrono::system_clock::time_point &time, std::string_view format="%F %T") |
template<typename Duration > | |
auto | chrono::parse_duration (const config_attribute_value &val, const Duration &def=Duration{0}) |
template<typename... Ts, typename Rep , typename Period > | |
constexpr auto | chrono::deconstruct_duration (const std::tuple< Ts... > &, const std::chrono::duration< Rep, Period > &span) |
Variables | |
constexpr auto | chrono::format::days_hours_mins_secs |