Agora  1.2.0
Agora project
chrono.h File Reference
#include <algorithm>
#include <chrono>
#include <ctime>
#include <iterator>
#include <locale>
#include <ostream>
#include <type_traits>
#include "format.h"
Include dependency graph for chrono.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  fmt::v8::detail::null< T >
 
struct  fmt::v8::detail::codecvt_result< CodeUnit >
 
struct  fmt::v8::detail::null_chrono_spec_handler< Derived >
 
struct  fmt::v8::detail::tm_format_checker
 
struct  fmt::v8::detail::has_member_data_tm_gmtoff< T, typename >
 
struct  fmt::v8::detail::has_member_data_tm_gmtoff< T, void_t< decltype(T::tm_gmtoff)> >
 
struct  fmt::v8::detail::has_member_data_tm_zone< T, typename >
 
struct  fmt::v8::detail::has_member_data_tm_zone< T, void_t< decltype(T::tm_zone)> >
 
class  fmt::v8::detail::tm_writer< OutputIt, Char >
 
struct  fmt::v8::detail::chrono_format_checker
 
struct  fmt::v8::detail::make_unsigned_or_unchanged< T, INTEGRAL >
 
struct  fmt::v8::detail::make_unsigned_or_unchanged< T, true >
 
class  fmt::v8::detail::get_locale
 
struct  fmt::v8::detail::chrono_formatter< FormatContext, OutputIt, Rep, Period >
 
class  fmt::v8::weekday
 
class  fmt::v8::year_month_day
 
struct  fmt::v8::formatter< weekday, Char >
 
struct  fmt::v8::formatter< std::chrono::duration< Rep, Period >, Char >
 
struct  fmt::v8::formatter< std::chrono::duration< Rep, Period >, Char >::spec_handler
 
struct  fmt::v8::formatter< std::chrono::duration< Rep, Period >, Char >::parse_range
 
struct  fmt::v8::formatter< std::chrono::time_point< std::chrono::system_clock, Duration >, Char >
 
struct  fmt::v8::formatter< std::tm, Char >
 

Namespaces

 fmt
 
 fmt::v8
 
 fmt::v8::safe_duration_cast
 
 fmt::v8::detail
 

Macros

#define FMT_USE_TZSET   0
 
#define FMT_SAFE_DURATION_CAST   1
 
#define FMT_NOMACRO
 

Enumerations

enum  fmt::v8::detail::numeric_system { fmt::v8::detail::numeric_system::standard, fmt::v8::detail::numeric_system::alternative }
 

Functions

template<typename To , typename From , enable_if_t<(!std::is_same< From, To >::value &&std::numeric_limits< From >::is_signed==std::numeric_limits< To >::is_signed), int > = 0>
To fmt::v8::safe_duration_cast::lossless_integral_conversion (const From from, int &ec)
 
template<typename To , typename From , enable_if_t<(!std::is_same< From, To >::value), int > = 0>
To fmt::v8::safe_duration_cast::safe_float_conversion (const From from, int &ec)
 
template<typename To , typename FromRep , typename FromPeriod , enable_if_t<(std::is_integral< FromRep >::value), int > = 0, enable_if_t<(std::is_integral< typename To::rep >::value), int > = 0>
To fmt::v8::safe_duration_cast::safe_duration_cast (std::chrono::duration< FromRep, FromPeriod > from, int &ec)
 
null fmt::v8::detail::localtime_r (...)
 
null fmt::v8::detail::localtime_s (...)
 
null fmt::v8::detail::gmtime_r (...)
 
null fmt::v8::detail::gmtime_s (...)
 
const std::locale & fmt::v8::detail::get_classic_locale ()
 
template<typename CodeUnit >
void fmt::v8::detail::write_codecvt (codecvt_result< CodeUnit > &out, string_view in_buf, const std::locale &loc)
 
template<typename OutputIt >
auto fmt::v8::detail::write_encoded_tm_str (OutputIt out, string_view in, const std::locale &loc) -> OutputIt
 
template<typename Char , typename OutputIt , enable_if_t<(!std::is_same< Char, char >::value), int > = 0>
auto fmt::v8::detail::write_tm_str (OutputIt out, string_view sv, const std::locale &loc) -> OutputIt
 
template<typename Char >
void fmt::v8::detail::do_write (buffer< Char > &buf, const std::tm &time, const std::locale &loc, char format, char modifier)
 
template<typename Char , typename OutputIt , enable_if_t<(!std::is_same< Char, char >::value), int > = 0>
auto fmt::v8::detail::write (OutputIt out, const std::tm &time, const std::locale &loc, char format, char modifier=0) -> OutputIt
 
std::tm fmt::v8::localtime (std::time_t time)
 
std::tm fmt::v8::localtime (std::chrono::time_point< std::chrono::system_clock > time_point)
 
std::tm fmt::v8::gmtime (std::time_t time)
 
std::tm fmt::v8::gmtime (std::chrono::time_point< std::chrono::system_clock > time_point)
 
void fmt::v8::detail::write_digit2_separated (char *buf, unsigned a, unsigned b, unsigned c, char sep)
 
template<typename Period >
const char * fmt::v8::detail::get_units ()
 
template<typename Char , typename Handler >
const Char * fmt::v8::detail::parse_chrono_format (const Char *begin, const Char *end, Handler &&handler)
 
const char * fmt::v8::detail::tm_wday_full_name (int wday)
 
const char * fmt::v8::detail::tm_wday_short_name (int wday)
 
const char * fmt::v8::detail::tm_mon_full_name (int mon)
 
const char * fmt::v8::detail::tm_mon_short_name (int mon)
 
template<typename T , enable_if_t<(std::is_integral< T >::value), int > = 0>
bool fmt::v8::detail::isnan (T)
 
template<typename T , enable_if_t<(std::is_integral< T >::value), int > = 0>
bool fmt::v8::detail::isfinite (T)
 
template<typename T , typename Int , enable_if_t<(std::is_integral< T >::value), int > = 0>
Int fmt::v8::detail::to_nonnegative_int (T value, Int upper)
 
template<typename T , enable_if_t<(std::is_integral< T >::value), int > = 0>
T fmt::v8::detail::mod (T x, int y)
 
template<typename To , typename FromRep , typename FromPeriod >
To fmt::v8::detail::fmt_safe_duration_cast (std::chrono::duration< FromRep, FromPeriod > from)
 
template<typename Rep , typename Period , enable_if_t<(std::is_integral< Rep >::value), int > = 0>
std::chrono::duration< Rep, std::milli > fmt::v8::detail::get_milliseconds (std::chrono::duration< Rep, Period > d)
 
constexpr int fmt::v8::detail::count_fractional_digits (long long num, long long den, int n=0)
 
constexpr long long fmt::v8::detail::pow10 (std::uint32_t n)
 
template<class Rep , class Period , enable_if_t<(std::numeric_limits< Rep >::is_signed), int > = 0>
constexpr std::chrono::duration< Rep, Period > fmt::v8::detail::abs (std::chrono::duration< Rep, Period > d)
 
template<typename Char , typename Rep , typename OutputIt , enable_if_t<(std::is_integral< Rep >::value), int > = 0>
OutputIt fmt::v8::detail::format_duration_value (OutputIt out, Rep val, int)
 
template<typename Char , typename OutputIt >
OutputIt fmt::v8::detail::copy_unit (string_view unit, OutputIt out, Char)
 
template<typename OutputIt >
OutputIt fmt::v8::detail::copy_unit (string_view unit, OutputIt out, wchar_t)
 
template<typename Char , typename Period , typename OutputIt >
OutputIt fmt::v8::detail::format_duration_unit (OutputIt out)
 

Macro Definition Documentation

◆ FMT_NOMACRO

#define FMT_NOMACRO

◆ FMT_SAFE_DURATION_CAST

#define FMT_SAFE_DURATION_CAST   1

◆ FMT_USE_TZSET

#define FMT_USE_TZSET   0