Classes | Namespaces | Macros | Enumerations | Functions
chrono.h File Reference
#include <chrono>
#include <ctime>
#include <locale>
#include <sstream>
#include "format.h"
#include "locale.h"
Include dependency graph for chrono.h:

Go to the source code of this file.

Classes

struct  detail::chrono_format_checker
 
struct  detail::chrono_formatter< FormatContext, OutputIt, Rep, Period >
 
struct  formatter< std::chrono::duration< Rep, Period >, Char >
 
struct  formatter< std::chrono::time_point< std::chrono::system_clock >, Char >
 
struct  formatter< std::tm, Char >
 
struct  detail::make_unsigned_or_unchanged< T, INTEGRAL >
 
struct  detail::make_unsigned_or_unchanged< T, true >
 
struct  formatter< std::chrono::duration< Rep, Period >, Char >::parse_range
 
struct  formatter< std::chrono::duration< Rep, Period >, Char >::spec_handler
 

Namespaces

 detail
 
 safe_duration_cast
 

Macros

#define FMT_NOMACRO
 
#define FMT_SAFE_DURATION_CAST   1
 

Enumerations

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

Functions

template<typename Char , typename OutputIt >
OutputIt detail::copy_unit (string_view unit, OutputIt out, Char)
 
template<typename OutputIt >
OutputIt detail::copy_unit (string_view unit, OutputIt out, wchar_t)
 
null localtime_r detail::FMT_NOMACRO (...)
 
template<typename To , typename FromRep , typename FromPeriod >
To detail::fmt_safe_duration_cast (std::chrono::duration< FromRep, FromPeriod > from)
 
template<typename Char , typename Period , typename OutputIt >
OutputIt detail::format_duration_unit (OutputIt out)
 
template<typename Char , typename Rep , typename OutputIt >
OutputIt detail::format_duration_value (OutputIt out, Rep val, int precision)
 
template<typename Rep , typename Period , FMT_ENABLE_IF(std::is_integral< Rep >::value) >
std::chrono::duration< Rep, std::milli > detail::get_milliseconds (std::chrono::duration< Rep, Period > d)
 
template<typename Period >
FMT_CONSTEXPR const char * detail::get_units ()
 
template<>
FMT_CONSTEXPR const char * detail::get_units< std::atto > ()
 
template<>
FMT_CONSTEXPR const char * detail::get_units< std::centi > ()
 
template<>
FMT_CONSTEXPR const char * detail::get_units< std::deca > ()
 
template<>
FMT_CONSTEXPR const char * detail::get_units< std::deci > ()
 
template<>
FMT_CONSTEXPR const char * detail::get_units< std::exa > ()
 
template<>
FMT_CONSTEXPR const char * detail::get_units< std::femto > ()
 
template<>
FMT_CONSTEXPR const char * detail::get_units< std::giga > ()
 
template<>
FMT_CONSTEXPR const char * detail::get_units< std::hecto > ()
 
template<>
FMT_CONSTEXPR const char * detail::get_units< std::kilo > ()
 
template<>
FMT_CONSTEXPR const char * detail::get_units< std::mega > ()
 
template<>
FMT_CONSTEXPR const char * detail::get_units< std::micro > ()
 
template<>
FMT_CONSTEXPR const char * detail::get_units< std::milli > ()
 
template<>
FMT_CONSTEXPR const char * detail::get_units< std::nano > ()
 
template<>
FMT_CONSTEXPR const char * detail::get_units< std::peta > ()
 
template<>
FMT_CONSTEXPR const char * detail::get_units< std::pico > ()
 
template<>
FMT_CONSTEXPR const char * detail::get_units< std::ratio< 1 > > ()
 
template<>
FMT_CONSTEXPR const char * detail::get_units< std::ratio< 3600 > > ()
 
template<>
FMT_CONSTEXPR const char * detail::get_units< std::ratio< 60 > > ()
 
template<>
FMT_CONSTEXPR const char * detail::get_units< std::tera > ()
 
std::tm gmtime (std::time_t time)
 
std::tm gmtime (std::chrono::time_point< std::chrono::system_clock > time_point)
 
null detail::gmtime_r (...)
 
null detail::gmtime_s (...)
 
template<typename T , FMT_ENABLE_IF(std::is_integral< T >::value) >
bool detail::isfinite (T)
 
template<typename T , FMT_ENABLE_IF(std::is_integral< T >::value) >
bool detail::isnan (T)
 
std::tm localtime (std::time_t time)
 
std::tm localtime (std::chrono::time_point< std::chrono::system_clock > time_point)
 
null detail::localtime_s (...)
 
template<typename To , typename From , FMT_ENABLE_IF(!std::is_same< From, To >::value &&std::numeric_limits< From >::is_signed==std::numeric_limits< To >::is_signed) >
FMT_CONSTEXPR To safe_duration_cast::lossless_integral_conversion (const From from, int &ec)
 
template<typename T , FMT_ENABLE_IF(std::is_integral< T >::value) >
detail::mod (T x, int y)
 
template<typename Char , typename Handler >
FMT_CONSTEXPR const Char * detail::parse_chrono_format (const Char *begin, const Char *end, Handler &&handler)
 
template<typename To , typename FromRep , typename FromPeriod , FMT_ENABLE_IF(std::is_integral< FromRep >::value) , FMT_ENABLE_IF(std::is_integral< typename To::rep >::value) >
To safe_duration_cast::safe_duration_cast (std::chrono::duration< FromRep, FromPeriod > from, int &ec)
 
template<typename To , typename From , FMT_ENABLE_IF(!std::is_same< From, To >::value) >
FMT_CONSTEXPR To safe_duration_cast::safe_float_conversion (const From from, int &ec)
 
size_t detail::strftime (char *str, size_t count, const char *format, const std::tm *time)
 
size_t detail::strftime (wchar_t *str, size_t count, const wchar_t *format, const std::tm *time)
 
template<typename T , FMT_ENABLE_IF(std::is_integral< T >::value) >
int detail::to_nonnegative_int (T value, int upper)
 

Macro Definition Documentation

#define FMT_NOMACRO

Definition at line 282 of file chrono.h.

#define FMT_SAFE_DURATION_CAST   1

Definition at line 23 of file chrono.h.

Function Documentation

std::tm gmtime ( std::time_t  time)
inline

Definition at line 334 of file chrono.h.

std::tm gmtime ( std::chrono::time_point< std::chrono::system_clock >  time_point)
inline

Definition at line 369 of file chrono.h.

std::tm localtime ( std::time_t  time)
inline

Definition at line 292 of file chrono.h.

std::tm localtime ( std::chrono::time_point< std::chrono::system_clock >  time_point)
inline

Definition at line 328 of file chrono.h.



plotjuggler
Author(s): Davide Faconti
autogenerated on Sun Dec 6 2020 04:02:48