开发者

Convert boost ptime from GMT to UTC

开发者 https://www.devze.com 2023-03-25 06:39 出处:网络
I am trying to convert boost::posix_time::ptime from GMT to UTC. I went on Boost web site, and most of the examples are for US time zone, but I need the GMT one.

I am trying to convert boost::posix_time::ptime from GMT to UTC. I went on Boost web site, and most of the examples are for US time zone, but I need the GMT one.

All I need is the right parameters to put in boost::date_time::local_adju开发者_JAVA技巧stor

Thanks.


Ok, assuming this is WET your string should be (Summertime is from last Sunday in April, 2:00 until last Sunday in October, 3:00):

"WET-0WEST,M4.5.0/02:00:00,M10.5.0/03:00:00"
0

精彩评论

暂无评论...
验证码 换一张
取 消