[Interest] Relashionship between time_t and QDateTime
Thiago Macieira
thiago.macieira at intel.com
Tue Aug 27 21:38:46 CEST 2013
On terça-feira, 27 de agosto de 2013 22:17:07, Constantin Makshin wrote:
> In MSVC's runtime library — yes, gmtime() is broken.
>
> From MSDN (http://msdn.microsoft.com/en-us/library/vstudio/0z9czt0w.aspx):
> > Return Value
> > A pointer to a structure of type tm. The fields of the returned structure
> > hold the evaluated value of the timer argument in UTC rather than in
> > local time. Each of the structure fields is of type int, as follows: ...
> > tm_isdst
> > Always 0 for gmtime.
That does not show that it's broken. You've pasted the parts that show that
gmtime does what it's supposed to do: convert from local time to GMT. Since
GMT is never in daylight savings, tm_isdst will always be zero.
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130827/a4d8f1d1/attachment.sig>
More information about the Interest
mailing list