Date Conversion problem: Date == 2079/12/31
danb_83 at yahoo.com
Mon Aug 19 21:59:48 EDT 2002
"Bradley D. Larson" <blarson at crary.com> wrote in message news:<mailman.1029764847.11583.python-list at python.org>...
> I have been using Python to supplement an MRP called Fourth Shift
> with great success until now....
> Fourth Shift utilizes 2079/12/31 as the "end of time" for items that
> do not expire. Unfortunately the python "time" lib does not handle
> this date. I have attempted to convert the date to something else
> in the sql call (eg. to_date(out_date,'YYYYMMDD')) but this does
> not appear to be supported in the Fourth Shift ODBC/DB calls.
> Does anyone know if this date is pushed back farther in python 2.2?
> Or do you know of a work around...
All you need is a Date class that's independent of the "time" module.
There's one in the Python demo folder, or you could use mine
More information about the Python-list