datetime strftime methods require year >= 1900

John Hunter jdhunter at ace.bsd.uchicago.edu
Wed Sep 29 16:05:07 EDT 2004


>>>>> "Anna" == Anna Martelli Ravenscroft <anna at aleax.it> 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.

JDH



More information about the Python-list mailing list