David Woodhouse wrote: > > On Sat, 2005-04-30 at 14:49 +0200, Edgar Toernig wrote: > > + if (tm.tm_sec > 59) > > + return; > > During a leap second, won't tm_sec be 60? And in fact you don't seem to > handle leap seconds at all, so isn't my_mktime going to be out by one > second for every leap second which has occurred since 1970? There are no leap-seconds on POSIX systems. They allow tm_sec to be 60 but thats all - 00:00:60 is the same as 00:01:00. Whether the check should be against 59 or 60? I don't care. It's Linus decision. > There's a reason I'd rather just let glibc handle it :) Good joke. Ciao, ET. - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.htmlReceived on Sat Apr 30 23:23:15 2005
This archive was generated by hypermail 2.1.8 : 2005-04-30 23:23:15 EST