|
spdlog
|
Go to the source code of this file.
#include <algorithm>#include <chrono>#include <ctime>#include <locale>#include <sstream>#include "format.h"Namespaces | |
| namespace | detail |
Macros | |
| #define | FMT_SAFE_DURATION_CAST 1 |
| #define | FMT_NOMACRO |
Enumerations | |
| enum class | numeric_system { standard , alternative } |
Functions | |
| null localtime_r | detail::FMT_NOMACRO (...) |
| null | detail::localtime_s (...) |
| null | detail::gmtime_r (...) |
| null | detail::gmtime_s (...) |
| auto | detail::do_write (const std::tm &time, const std::locale &loc, char format, char modifier) -> std::string |
| template<typename OutputIt > | |
| auto | detail::write (OutputIt out, const std::tm &time, const std::locale &loc, char format, char modifier=0) -> OutputIt |
| FMT_MODULE_EXPORT_BEGIN 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) |
| FMT_BEGIN_DETAIL_NAMESPACE 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_BEGIN_DETAIL_NAMESPACE FMT_CONSTEXPR const char * | get_units () |
| 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) > | |
| T | 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 , FMT_ENABLE_IF(std::is_integral< Rep >::value) > | |
| OutputIt | format_duration_value (OutputIt out, Rep val, int) |
| 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) |
| #define FMT_NOMACRO |
Definition at line 282 of file bundled/chrono.h.
| #define FMT_SAFE_DURATION_CAST 1 |
Definition at line 23 of file bundled/chrono.h.
|
strong |
| Enumerator | |
|---|---|
| standard | |
| alternative | |
Definition at line 576 of file bundled/chrono.h.
| OutputIt copy_unit | ( | string_view | unit, |
| OutputIt | out, | ||
| Char | |||
| ) |
Definition at line 902 of file bundled/chrono.h.
| OutputIt copy_unit | ( | string_view | unit, |
| OutputIt | out, | ||
| wchar_t | |||
| ) |
Definition at line 907 of file bundled/chrono.h.
| OutputIt format_duration_unit | ( | OutputIt | out | ) |
Definition at line 915 of file bundled/chrono.h.
| OutputIt format_duration_value | ( | OutputIt | out, |
| Rep | val, | ||
| int | precision | ||
| ) |
Definition at line 888 of file bundled/chrono.h.
|
inline |
Definition at line 854 of file bundled/chrono.h.
|
inline |
Definition at line 553 of file bundled/chrono.h.
|
inline |
Definition at line 449 of file bundled/chrono.h.
|
inline |
Converts given time since epoch as std::time_t value into calendar time, expressed in Coordinated Universal Time (UTC). Unlike std::gmtime, this function is thread-safe on most platforms.
Definition at line 414 of file bundled/chrono.h.
Definition at line 796 of file bundled/chrono.h.
Definition at line 787 of file bundled/chrono.h.
|
inline |
Definition at line 404 of file bundled/chrono.h.
|
inline |
Converts given time since epoch as std::time_t value into calendar time, expressed in local time. Unlike std::localtime, this function is thread-safe on most platforms.
Definition at line 368 of file bundled/chrono.h.
Definition at line 822 of file bundled/chrono.h.
| FMT_CONSTEXPR const Char * parse_chrono_format | ( | const Char * | begin, |
| const Char * | end, | ||
| Handler && | handler | ||
| ) |
Definition at line 584 of file bundled/chrono.h.
|
inline |
Definition at line 456 of file bundled/chrono.h.
|
inline |
Definition at line 466 of file bundled/chrono.h.
Definition at line 806 of file bundled/chrono.h.