[Qt-interest] QDateTime daylight saving parsing time offset

Dan White ygor at comcast.net
Wed Mar 30 16:25:22 CEST 2011


I accept that.

Would it be better to say that it is an offset from UTC ?

One would then subtract the offset from the given time to get UTC.

In the example given, Tue, 29 Mar 2011 09:00:00 +0100 becomes Tue, 29 Mar 2011 08:00:00 UTC

For me, local time is Wed, 30 Mar 2011 10:22:00 -0400 (US Eastern Daylight Time), which would make it Wed, 30 Mar 2011 14:22:00 UTC.

“Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.”
Bill Waterson (Calvin & Hobbes)

----- Atlant Schmidt <aschmidt at dekaresearch.com> wrote:
> Dan:
> 
> > The "+0100" refers to the first timezone to the east of
> > Greenwich - Central European Time, I believe.
> 
>   Isn't t actually referring to a timezone (theoretically
>   located anywhere) that is presently operating one hour
>   *AHEAD* of UTC? It could be the next timezone east of
>   Greenwhich when they are operating on their winter time
>   hours or it could be Greenwhich itself when they are
>   Operating on Summer time.
> 
>                            Atlant



More information about the Qt-interest-old mailing list