[Interest] Relashionship between time_t and QDateTime
thiago.macieira at intel.com
Tue Aug 27 21:42:09 CEST 2013
On terça-feira, 27 de agosto de 2013 22:59:44, Constantin Makshin wrote:
> Windows can store information about daylight saving transitions for past
> years, but always uses one for the current year. And since daylight
> saving transition dates and time tend to slightly drift from year to
> year, there's absolutely no guarantees of getting correct time
> conversion results; in general case 1-hour error is nearly inevitable.
> If you're on Windows, either calculate and apply DST yourself or forget
> about correct "UTC <-> local time" conversions.
This is not about the corner case of a file that was created in the hour of the
transition, or even in the week that shifted between non-DST in one year to
DST in another (or vice-versa).
>From what I understand, we're talking about a file created in DST and checked
outside of DST (or vice-versa) in the *same* *year*.
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 190 bytes
Desc: This is a digitally signed message part.
More information about the Interest