Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试boost::posix_time::ptime从 GMT 转换为 UTC。我访问了 Boost 网站,大多数示例都是针对美国时区的,但我需要 GMT 一个。
boost::posix_time::ptime
我只需要输入正确的参数boost::date_time::local_adjustor
boost::date_time::local_adjustor
谢谢。
好的,假设这是 WET,您的字符串应该是(夏季从 4 月的最后一个星期日 2:00 到 10 月的最后一个星期日 3:00):
"WET-0WEST,M4.5.0/02:00:00,M10.5.0/03:00:00"