datetime strftime methods require year >= 1900

John Hunter jdhunter at
Wed Sep 29 22:05:07 CEST 2004

>>>>> "Anna" == Anna Martelli Ravenscroft <anna at> writes:

    Anna> Why would you need to use strftime, if you've already got a
    Anna> year?
    >>>> print dt.year
    Anna> 1005

That was just a simple-minded example.  I need the ability to handle
general format strings over the range of datetime dates.


More information about the Python-list mailing list