Код: Выделить всё
#include
#include
#include
int main()
{
const std::chrono::time_point now {std::chrono::system_clock::now()};
const std::chrono::year_month_day ymd {std::chrono::floor(now)};
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79644058/how-can-i-format-a-stdchronoyear-month-day-with-libfmt[/url]
Мобильная версия