Код: Выделить всё
#include
#include
#include
using namespace std;
int main(int, char *argv[]) {
auto now = chrono::system_clock::now();
auto znow = chrono::zoned_time{argv[1], now};
locale::global(locale(argv[2]));
// These are all the locale-specific format specifiers I could find.
cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79110378/why-cant-i-get-c-date-formatting-to-be-different-in-different-locales[/url]
Мобильная версия