Re: getdate.y question
Paul Eggert <[email protected]> Thu, 13 May 2004 08:39:59 -0700
| Newsgroups | gmane.comp.lib.gnulib.bugs,gmane.comp.version-control.cvs.bugs |
|---|---|
| Message-ID | <[email protected]> |
"Jim.Hyslop" <[email protected]> writes: > Refactor the functionality out of mktime into a separate function, > say mktime_checked, which accepts an additional boolean parameter, > say allow_overflow. There's no need for any of this. All you have to do is check that the output of mktime (the struct tm, that is) is the same as the input. The only problem comes up near the boundary conditions like 2038, where the time zone of the time stamp may differ from your time zone.