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

Go to the source code of this file.

Classes

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  internal
 

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 gmtime (std::time_t time)
 
std::size_t strftime (char *str, std::size_t count, const char *format, const std::tm *time)
 
std::size_t strftime (wchar_t *str, std::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 Rep , typename OutputIt >
OutputIt format_chrono_duration_value (OutputIt out, Rep val, int precision)
 
template<typename Period , typename OutputIt >
static OutputIt format_chrono_duration_unit (OutputIt out)
 

Macro Definition Documentation

◆ FMT_NOMACRO

#define FMT_NOMACRO

Definition at line 307 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()

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

Definition at line 354 of file chrono.h.

References FMT_THROW.

◆ localtime()

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

Definition at line 317 of file chrono.h.

References FMT_THROW.