sys_days + months{2} how to pass it with a unit of seconds?

Look at this code:

1
2
3
4
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);


Need to convert sdays_ into a unit of 1 seecond, but how??

Regards
What exactly is not working?

This sample works as expected:

1
2
3
4
5
6
7
8
	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;
Topic archived. No new replies allowed.