What I want to do is read a text file containing a text string in ISO 8601 combined date and time in utc format (e.g. 2016-04-26T12:45:05+00:00). I also want to have the freedom to convert this between time zones and have accurate daylight savings time data. Boost::datetime seems to read in the string, but it looks like boost::locale is recommended for time zone conversions and DLS. Is there a way for me to have both?
"Counter Wall" wrote in message news:2018834938.2582294.1461684621820.JavaMail.yahoo@mail.yahoo.com...
What I want to do is read a text file containing a text string in ISO 8601 combined date and time in utc format (e.g. 2016-04-26T12:45:05+00:00). I also want to have the freedom to convert this between time zones and have accurate daylight savings time data. Boost::datetime seems to read in the string, but it looks like boost::locale is recommended for time zone conversions and DLS. Is there a way for me to have both?
There are local times in Boost.DateTime which take time zones and DLS into account (see http://www.boost.org/doc/libs/1_60_0/doc/html/date_time/local_time.html). Is this what you are looking for? Boris
participants (2)
-
Boris Schäling
-
Counter Wall