SoPlex Documentation
Loading...
Searching...
No Matches
chrono.h File Reference
#include <chrono>
#include <ctime>
#include <locale>
#include <sstream>
#include "format.h"
#include "locale.h"

Go to the source code of this file.

Classes

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

Namespaces

namespace  detail
 

Macros

#define FMT_SAFE_DURATION_CAST   1
 
#define FMT_NOMACRO
 

Enumerations

enum class  numeric_system { standard , alternative }
 

Functions

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

Macro Definition Documentation

◆ FMT_NOMACRO

#define FMT_NOMACRO

Definition at line 282 of file chrono.h.

◆ FMT_SAFE_DURATION_CAST

#define FMT_SAFE_DURATION_CAST   1

Definition at line 23 of file chrono.h.

Function Documentation

◆ gmtime() [1/2]

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

Definition at line 369 of file chrono.h.

References gmtime().

◆ gmtime() [2/2]

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

Definition at line 334 of file chrono.h.

References FMT_THROW.

Referenced by gmtime().

◆ localtime() [1/2]

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

Definition at line 328 of file chrono.h.

References localtime().

◆ localtime() [2/2]

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