<div class="gmail_quote">On Fri, Aug 3, 2012 at 7:18 AM, Stanislav Frolov <span dir="ltr"><<a href="mailto:frolosofsky@gmail.com" target="_blank">frolosofsky@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="im">Looks like localtime returns 3 hours instead of 4.</div>
And datetimes for current time_t:<br>[...]Difference between gmtime and localtime is 4 hours. Bug? Feature?<br></blockquote><div><br></div><div>Obviously a bug in the C library or a misconfiguration from your system. Following the ISO and POSIX standards</div>

<div><a href="http://pubs.opengroup.org/onlinepubs/009695299/functions/localtime.html">http://pubs.opengroup.org/onlinepubs/009695299/functions/localtime.html</a></div><div><br></div></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px">

<div class="gmail_quote"><div>"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()."</div>

</div></blockquote><div class="gmail_quote"><div><span style="font-family:Verdana,Arial,Helvetica,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br></span></div><div><span style="font-family:Verdana,Arial,Helvetica,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Juanjo</span></div>

<div><span style="font-family:Verdana,Arial,Helvetica,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br></span></div></div>-- <br>Instituto de Física Fundamental, CSIC<br>c/ Serrano, 113b, Madrid 28006 (Spain) <br>

<a href="http://juanjose.garciaripoll.googlepages.com" target="_blank">http://juanjose.garciaripoll.googlepages.com</a><br>