Namespaces
Variants
Actions

Talk:cpp/locale/time get/get

From cppreference.com

Comparing `std::time_get::do_get` to `std::time_put::do_put`, I notice that `std::time_get::do_get` is missing the `%F` specification present in `tstd::time_put::do_put`, for the ISO 8601 date format`%Y-%m-%d`. Is this a typo?

I think this discrepancy is due to std::time_put::put deferring to the C function strftime, which does define the %F specifier, whilst std::time_put::get defers to POSIX strptime, which doesn't --Ybab321 (talk) 15:00, 13 May 2021 (PDT)