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
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest