Boost logo

Boost Users :

Subject: Re: [Boost-users] Date and Time with Boost
From: Boris Schäling (boris_at_[hidden])
Date: 2016-04-28 18:04:08


"Counter Wall" wrote in message
news:2018834938.2582294.1461684621820.JavaMail.yahoo_at_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


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net