range of mktime
Fredrik Lundh
effbot at telia.com
Tue Oct 3 10:03:48 EDT 2000
Daniel wrote:
> : That surprises me mildly; the usual range is 1970 to 2038 (matching the
> : range of the Unix 32-bit clock). You may want to use mxDateTime instead
> : for greater range, precision, and utility.
>
> It's 32-bit, but signed. The 32-bit-Unix-range is then 1970+/-68 years.
note that the time.h functions use "(time_t) -1" to flag errors,
so I doubt they expected anyone to use negative values...
</F>
More information about the Python-list
mailing list