Thanks for double-checking, Henrik.  Yeah, UNIX time is much easier to do math with. wonder if we'd have to come out of retirement in 2037 or 2038 to fix the 32-bit problem...<br>Good point on existing DST on other continents.  Assurance is good. Verification is even better.
<br><br><div><span class="gmail_quote">On 3/6/07, <b class="gmail_sendername">Henrik Stoerner</b> <<a href="mailto:henrik@hswn.dk">henrik@hswn.dk</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Tue, Mar 06, 2007 at 04:17:36PM -0500, Jerry Yu wrote:<br>> if it is UNIX time then it won't be a problem.<br>> If local time is stored then used to calculate, it'd be a problem.<br><br>Local time is never used for calculations. It is just much easier
<br>to do all time work using Unix Epoch time, and leave the "show local<br>time" stuff to the C library (which uses your zoneinfo files).<br><br>I've done a search of the Hobbit sourcefiles, and the only usage of
<br>local time are<br><br>1) the routine which calculate whether a time is within e.g. a<br>   DOWNTIME specification;<br>2) the routine which checks SSL certificate expiry time;<br>3) routines which display timestamps in log files or on web pages.
<br><br>All of these use the standard C library routine "localtime()" to do<br>the conversion between Unix Epoch time and local time. This uses<br>the system's zoneinfo definitions, so it will work without problems -
<br>provided your OS has been updated with new zoneinfo files.<br><br>Besides, DST changes in the US have *always* been different from what<br>is used in Europe (and still are, even with the new DST start date in<br>the US). So if there had been any hardcoded "this is when DST starts"
<br>code in Hobbit, it would have been spotted several years ago.<br><br><br>Regards,<br>Henrik<br><br><br>To unsubscribe from the hobbit list, send an e-mail to<br><a href="mailto:hobbit-unsubscribe@hswn.dk">hobbit-unsubscribe@hswn.dk
</a><br><br><br></blockquote></div><br>