[Sheila King]
> I have a web app that has been running just fine for several months under
> Python 2.2.2.
>
> We are preparing to upgrade the server to run Python 2.4.1.
>
> However, part of my web app is throwing an error on this code (that has
> previously worked without exception):
>
> >>> time.
Raymond Hettinger wrote:
Since the rules for handling missing, inconsistent, or out-of-range tuple fields
are not defined, even that revision has some risk. To future-proof the code,
use strptime() to generate a well-formed time tuple:
strptime('%d-%d-%d' % (y,m,d), '%Y-%m-%d')
(2005, 5, 15, 0, 0,
[Sheila King]
> I have a web app that has been running just fine for several months under
> Python 2.2.2.
>
> We are preparing to upgrade the server to run Python 2.4.1.
>
> However, part of my web app is throwing an error on this code (that has
> previously worked without exception):
>
> >>> time.
Sheila King said unto the world upon 2005-04-22 02:45:
I have a web app that has been running just fine for several months under
Python 2.2.2.
We are preparing to upgrade the server to run Python 2.4.1.
However, part of my web app is throwing an error on this code (that has
previously worked wit
I have a web app that has been running just fine for several months under
Python 2.2.2.
We are preparing to upgrade the server to run Python 2.4.1.
However, part of my web app is throwing an error on this code (that has
previously worked without exception):
>>> time.strftime("%Y-%m-%d", (Y, M,