How to obtain the sys_days for "today" or "now"
Yes its a simple question: how can i get the std::chrono::sys_days corresponding for today or now??
Regards,
Juan
got it:
1 2 3
|
using namespace std::chrono;
const auto today = sys_days{floor<days>(system_clock::now())};
|
Topic archived. No new replies allowed.