#include <chrono.h>
Public Types | |
using | rep = conditional_t< std::is_integral< Rep >::value &&sizeof(Rep)< sizeof(int), unsigned, typename make_unsigned_or_unchanged< Rep >::type > |
using | seconds = std::chrono::duration< rep > |
using | milliseconds = std::chrono::duration< rep, std::milli > |
using | char_type = typename FormatContext::char_type |
Public Attributes | |
FormatContext & | context |
OutputIt | out |
int | precision |
rep | val |
seconds | s |
bool | negative |
using milliseconds = std::chrono::duration<rep, std::milli> |
using rep = conditional_t<std::is_integral<Rep>::value && sizeof(Rep) < sizeof(int), unsigned, typename make_unsigned_or_unchanged<Rep>::type> |
|
explicit |
Definition at line 794 of file chrono.h.
References internal::fmt_safe_duration_cast().
void format_localized | ( | const tm & | time, |
const char * | format | ||
) |
Definition at line 874 of file chrono.h.
References internal::copy(), and internal::isnan().
bool handle_nan_inf | ( | ) |
Definition at line 818 of file chrono.h.
References internal::isfinite(), and internal::isnan().
Rep hour | ( | ) | const |
Definition at line 835 of file chrono.h.
References internal::mod().
Rep hour12 | ( | ) | const |
Definition at line 837 of file chrono.h.
References internal::mod().
Rep minute | ( | ) | const |
Definition at line 842 of file chrono.h.
References internal::mod().
void on_12_hour | ( | numeric_system | ns | ) |
Definition at line 913 of file chrono.h.
References internal::to_nonnegative_int(), and internal::write().
void on_24_hour | ( | numeric_system | ns | ) |
Definition at line 904 of file chrono.h.
References internal::to_nonnegative_int(), and internal::write().
void on_24_hour_time | ( | ) |
Definition at line 962 of file chrono.h.
References internal::write().
void on_datetime | ( | numeric_system | ) |
void on_dec0_weekday | ( | numeric_system | ) |
void on_dec1_weekday | ( | numeric_system | ) |
void on_duration_value | ( | ) |
Definition at line 986 of file chrono.h.
References internal::format_chrono_duration_value().
void on_iso_time | ( | ) |
Definition at line 974 of file chrono.h.
References internal::write().
void on_loc_date | ( | numeric_system | ) |
void on_loc_time | ( | numeric_system | ) |
void on_minute | ( | numeric_system | ns | ) |
Definition at line 922 of file chrono.h.
References internal::to_nonnegative_int(), and internal::write().
void on_second | ( | numeric_system | ns | ) |
Definition at line 931 of file chrono.h.
References internal::fmt_safe_duration_cast(), internal::get_milliseconds(), internal::to_nonnegative_int(), and internal::write().
Definition at line 885 of file chrono.h.
References internal::copy().
Rep second | ( | ) | const |
Definition at line 843 of file chrono.h.
References internal::mod().
std::tm time | ( | ) | const |
Definition at line 845 of file chrono.h.
References internal::to_nonnegative_int().
void write | ( | Rep | value, |
int | width | ||
) |
Definition at line 860 of file chrono.h.
References internal::count_digits(), internal::isnan(), internal::to_nonnegative_int(), and internal::to_unsigned().
int precision |
Definition at line 781 of file chrono.h.
Referenced by formatter< std::chrono::duration< Rep, Period >, Char >::format().