fmt
Loading...
Searching...
No Matches
fmt::Formatter< std::tm, Char > Struct Template Referenceexport
module fmt
Inheritance diagram for fmt::Formatter< std::tm, Char >:
fmt::Formatter< Day, Char > fmt::Formatter< LocalTime< Duration >, Char > fmt::Formatter< Month, Char > fmt::Formatter< SysTime< Duration >, Char > fmt::Formatter< Weekday, Char > fmt::Formatter< Year, Char > fmt::Formatter< YearMonthDay, Char > fmt::Formatter< UtcTime< Duration >, Char >

Public Member Functions

constexpr auto parse (ParseContext< Char > &ctx) -> const Char *
template<typename FormatContext>
auto format (const std::tm &tm, FormatContext &ctx) const -> decltype(ctx.out())

Protected Member Functions

auto localized () const -> bool
constexpr void setLocalized ()
constexpr auto doParse (ParseContext< Char > &ctx, bool has_timezone) -> const Char *
template<typename Duration, typename FormatContext>
auto doFormat (const std::tm &tm, FormatContext &ctx, const Duration *subsecs) const -> decltype(ctx.out())

Detailed Description

template<typename Char>
struct fmt::Formatter< std::tm, Char >

Formats a std::tm using strftime-like specifiers.

Supports the specifiers of std::strftime plus Q for a duration value and q for its unit. With no specifiers the output is ISO 8601.

Locale-dependent specifiers such as c and x use the classic locale unless the L flag is given.


The documentation for this struct was generated from the following file:
  • /home/mccakit/desktop/mccakit-fmt/fmt/src/fmt/iface/chrono.cppm