Bug in time module?

Gerrit Holl gerrit.holl at pobox.com
Fri Sep 10 10:09:54 EDT 1999


On Wed, Sep 08, 1999 at 09:55:58AM +0200, Berthold Höllmann wrote:
> lec <englim at pc.jaring.my> writes:
> 
> More very strange things happen for me on linux:
> 
> Python 1.5.2 (#2, Apr 22 1999, 14:34:42)  [GCC egcs-2.91.66 19990314 (egcs-1.1.2  on linux2
> Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
> >>> import time
> >>> time.asctime(time.strptime('28/02/1999', "%d/%m/%Y"))
> 'Sun Feb 28 00:00:00 1999'
> >>> time.asctime(time.strptime('27/02/1999', "%d/%m/%Y"))
> 'Sun Feb 27 00:00:00 1999'
> >>> time.asctime(time.strptime('26/02/1999', "%d/%m/%Y"))
> 'Sun Feb 26 00:00:00 1999'
> >>> 
> 
> Everyday is sunday using Python? Really great.
> 

Except if you specify it it isn't Sunday.

regards,
Gerrit.
-- 
Unix is easy: type 'man man' and the rest comes of itself.




More information about the Python-list mailing list