Boost logo

Boost Users :

Subject: Re: [Boost-users] Question on Posix timezone string
From: Leon Mlakar (leon_at_[hidden])
Date: 2018-12-28 22:36:33

On 28.12.2018 22:30, Mats Webjörn/WIKAB wrote:
> Hi Leon,
> Yes, but the problem is that the offset for Berlin in Boost
> date_time_zonespec.csv is +01, not -01
Just to avoid ambiguity - it's probably not the date_time_zonespec.csv
entry that is broken (local system may use any notation they wish), and
from what I saw Boost.DateTime does not claim that this file has
contains Posix strings. Quite the opposite, the documentation on the
offset field is very explicit:

- GTM offset: This is the number of hours added to utc to get the local
time before any daylight savings adjustments are made. Some examples
are: America/New_York offset -5 hours, and Africa/Cairo offset +2 hours.
The format must follow the length-of-time format described above.

On the other hand, the documentation for to_posix_string() method does
claim that it, in accordance with its name, returns a Posix compliant



Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at