Boost logo

Boost :

Subject: Re: [boost] [date_time] Time zone improvements
From: Stewart, Robert (Robert.Stewart_at_[hidden])
Date: 2011-04-25 07:59:20

Artyom wrote:
> > >> As the primary maintainer of Boost date-time I can say
> > >> with certainty that there is interest in this
> > >> functionality -- it's long been on my todo list and I
> > >> haven't had time to get to it. You can email me
> > >> privately and we can discuss all the details of how to
> > >> get your code incorporated.
> >
> > Apologies for digging up the past, but did this lead to
> > anything? Did time_zone_base prove to be an adequate
> > abstraction in this case?
> From the last look I had took on tz support in
> Boost.DateTime (a few weeks ago)
> It is completely broken.
> I mean the base class seems to be technically fine but the
> actually timezone database in Boost.DateTime is broken.
> The time zone rules it uses are too simplified and don't
> cover real use cases where for example DST is changed by
> more complex rules then "First Saturday of May" but these
> rules should rather vary per year as well.

It is certainly deficient. We have wrapped it here with a mechanism that locates rules based upon the year, but we merely smoothed over the multiple-changes-per-year problem by picking the dominant values for a given year. It's a hack, but good enough for our purposes.

Rob Stewart robert.stewart_at_[hidden]
Software Engineer using std::disclaimer;
Dev Tools & Components
Susquehanna International Group, LLP

IMPORTANT: The information contained in this email and/or its attachments is confidential. If you are not the intended recipient, please notify the sender immediately by reply and immediately delete this message and all its attachments. Any review, use, reproduction, disclosure or dissemination of this message or any attachment by an unintended recipient is strictly prohibited. Neither this message nor any attachment is intended as or should be construed as an offer, solicitation or recommendation to buy or sell any security or other financial instrument. Neither the sender, his or her employer nor any of their respective affiliates makes any warranties as to the completeness or accuracy of any of the information contained herein or that this message or any of its attachments is free of viruses.

Boost list run by bdawes at, gregod at, cpdaniel at, john at