Template Struct chrono_formatter

Struct Documentation

template<typename FormatContext, typename OutputIt, typename Rep, typename Period>
struct fmt::v6::internal::chrono_formatter

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 Functions

chrono_formatter(FormatContext &ctx, OutputIt o, std::chrono::duration<Rep, Period> d)
bool handle_nan_inf()
Rep hour() const
Rep hour12() const
Rep minute() const
Rep second() const
std::tm time() const
void write_sign()
void write(Rep value, int width)
void write_nan()
void write_pinf()
void write_ninf()
void format_localized(const tm &time, const char *format)
void on_text(const char_type *begin, const char_type *end)
void on_abbr_weekday()
void on_full_weekday()
void on_dec0_weekday(numeric_system)
void on_dec1_weekday(numeric_system)
void on_abbr_month()
void on_full_month()
void on_datetime(numeric_system)
void on_loc_date(numeric_system)
void on_loc_time(numeric_system)
void on_us_date()
void on_iso_date()
void on_utc_offset()
void on_tz_name()
void on_24_hour(numeric_system ns)
void on_12_hour(numeric_system ns)
void on_minute(numeric_system ns)
void on_second(numeric_system ns)
void on_12_hour_time()
void on_24_hour_time()
void on_iso_time()
void on_am_pm()
void on_duration_value()
void on_duration_unit()

Public Members

FormatContext &context
OutputIt out
int precision
rep val
seconds s
bool negative