[Qt-interest] QDateTime daylight saving parsing time offset
Atlant Schmidt
aschmidt at dekaresearch.com
Wed Mar 30 15:40:45 CEST 2011
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
-----Original Message-----
From: qt-interest-bounces+aschmidt=dekaresearch.com at qt.nokia.com [mailto:qt-interest-bounces+aschmidt=dekaresearch.com at qt.nokia.com] On Behalf Of Dan White
Sent: Wednesday, March 30, 2011 09:35
To: qt-interest
Subject: Re: [Qt-interest] QDateTime daylight saving parsing time offset
I believe you are mistaken.
This is not UTC. The "+0100" refers to the first timezone to the east of Greenwich - Central European Time, I believe.
You may find this document useful: <http://www.w3.org/TR/NOTE-datetime.html>
and this reference: <http://en.wikipedia.org/wiki/ISO_8601>
You may also want to check out the QDateTime::fromString methods as the string you show is not in a standard format (like ISO 8601), but it can be parsed with QDateTime::fromString and an appropriate format string. Link:<http://doc.qt.nokia.com/4.7/qdatetime.html#fromString>
"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)
----- Paul Drummond <paul.drummond at iode.co.uk> wrote:
>I get a date time string in the following format:
>
> Tue, 29 Mar 2011 09:00:00 +0100
>
> Unless I'm mistaken (which happens a lot with me when working with
> date/time conversions!) the above string is in UTC format. When
> converted to a QDateTime the time should be 10:00:00, right? Or have
> I got that completely wrong? I hate date/time hacking :-(
_______________________________________________
Qt-interest mailing list
Qt-interest at qt.nokia.com
http://lists.qt.nokia.com/mailman/listinfo/qt-interest
This e-mail and the information, including any attachments, it contains are intended to be a confidential communication only to the person or entity to whom it is addressed and may contain information that is privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the sender and destroy the original message.
Thank you.
Please consider the environment before printing this email.
More information about the Qt-interest-old
mailing list