[Ecls-list] Datetime bug (gmt?)

Juan Jose Garcia-Ripoll juanjose.garciaripoll at gmail.com
Fri Aug 3 07:37:23 UTC 2012

On Fri, Aug 3, 2012 at 7:18 AM, Stanislav Frolov <frolosofsky at gmail.com>wrote:

> Looks like localtime returns 3 hours instead of 4.
> And datetimes for current time_t:
> [...]Difference between gmtime and localtime is 4 hours. Bug? Feature?

Obviously a bug in the C library or a misconfiguration from your system.
Following the ISO and POSIX standards

"The localtime() function shall convert the time in seconds since the Epoch
pointed to by timer into a broken-down time, expressed as a local time. The
function corrects for the timezone and any seasonal time adjustments. [CX]
  Local timezone information is used as though localtime() calls tzset()."


Instituto de Física Fundamental, CSIC
c/ Serrano, 113b, Madrid 28006 (Spain)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/ecl-devel/attachments/20120803/f3eb1801/attachment.html>

More information about the ecl-devel mailing list