C++ Logo

std-proposals

Advanced search

Re: [std-proposals] New draft proposal: Add "%s" (two-digit truncated-integer seconds) as a std::format conversion specifier for std::chrono time types.

From: Thiago Macieira <thiago_at_[hidden]>
Date: Wed, 03 May 2023 15:49:20 -0700
On Wednesday, 3 May 2023 09:05:53 PDT Jason McKesson via Std-Proposals wrote:
> All that being said, there is one clear advantage to your idea: cases
> where the format string is not known at the site of the use of the
> format string. The format string could come from a translation file, a
> macro, or somewhere else. And it would be good if those places could
> have more control over the formatting precision.

Is there a real use-case for this? Localised times should just use the
localised markers.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel DCAI Cloud Engineering

Received on 2023-05-03 22:49:22