|
Boost Users : |
Subject: Re: [Boost-users] handling of daylight saving time...
From: John Dlugosz (JDlugosz_at_[hidden])
Date: 2010-04-30 17:00:40
I use code based on the Olson database to figure out concomitant civil times. I don't think Boost has a module that includes this full database (that is, knowledge of how the time is changed when the rule was different in different years).
> -----Original Message-----
> From: boost-users-bounces_at_[hidden] [mailto:boost-users-
> bounces_at_[hidden]] On Behalf Of Archie14
> Sent: Friday, April 30, 2010 10:22 AM
> To: boost-users_at_[hidden]
> Subject: [Boost-users] handling of daylight saving time...
>
> My software records time events on the computer and it does it using
> whatever
> timezone and daylight saving time settings are on this computer. I
> realized
> too late that, while storing timestamps, I am not accounting for this
> daylight
> adjustment process. So, if hypothetically speaking, the daylight
> adjustment
> happens today at 9:00 am and I am writing my timestamps every second I
> will
> have something like that:
> â¦
> 8.58
> 8.59
> 9.00
> 10.01 (without timesaving should be 9.01)
> 10.02 (without timesaving should be 9.02)
> â¦
> When I am reading my timestamps back I am constructing timezone and
> using it
> for timestamps manipulation
> std::string gmt = (boost::format("TMZ%1%
> TMS1:00:00,M3.2.0/02:00:00,M11.1.0/02:00:00") % gmtoffset).str();
> , but this one-hour gap persists, as I now think it should.
>
> The question is: is it possible to do manipulation with datetime
> library to
> remove this gap without hard-coding one hour removal after specific
> date/time
> of daylight saving time?
>
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
TradeStation Group, Inc. is a publicly-traded holding company (NASDAQ GS: TRAD) of three operating subsidiaries, TradeStation Securities, Inc. (Member NYSE, FINRA, SIPC and NFA), TradeStation Technologies, Inc., a trading software and subscription company, and TradeStation Europe Limited, a United Kingdom, FSA-authorized introducing brokerage firm. None of these companies provides trading or investment advice, recommendations or endorsements of any kind. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.
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