How to get the current time zone?

前端 未结 5 1592
不知归路
不知归路 2020-12-06 09:03

In most of the examples I had seen:

time_zone_ptr zone( new posix_time_zone(\"MST-07\") ); 

But I just want to get the current time zone fo

5条回答
  •  暖寄归人
    2020-12-06 09:41

    You could always try getting the universal time and local time from boost and checking the difference, it's probably full of caveats though.

提交回复
热议问题