|
fmt
|
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()) |
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.