How to convert local_time to sys_time?

Hi,

I have this local time_point:

 
auto loc = std::chrono::current_zone()->to_local(std::chrono::system_clock::now());


and need to change it to sys_time -- maybe sys_seconds.

I have tried everything...


Regards,
Juan
Like this?

 
auto sys = std::chrono::current_zone()->to_sys(loc);
Last edited on
thanks!!
Topic archived. No new replies allowed.