1234
chr::sys_days sdays = 2024y / 2 / 29; auto sdays_ = sdays + chr::months{ 2 }; // unit 54 seconds auto interval = sdays_.time_since_epoch(); auto ssss = chr::duration_cast<chr::seconds>(interval);
12345678
namespace chr = std::chrono; auto now = chr::system_clock::now(); auto future = now + chr::months{ 2 }; auto interval = future.time_since_epoch(); auto seconds = chr::duration_cast<chr::seconds>(interval); std::cout << seconds;