bug-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-gnulib] getdate.y question


From: Paul Eggert
Subject: Re: [Bug-gnulib] getdate.y question
Date: Thu, 13 May 2004 08:39:59 -0700
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)

"Jim.Hyslop" <Jim.Hyslop@leitch.com> 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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]