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::ptimeGMT から UTCに変換しようとしています。Boost の Web サイトに行ったところ、ほとんどの例は米国のタイム ゾーン用ですが、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"