This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author belopolsky
Recipients Saimadhav.Heblikar, belopolsky, jamercee, lemburg, serhiy.storchaka, torm
Date 2014-12-31.17:40:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1420047625.05.0.108847973391.issue23136@psf.upfronthosting.co.za>
In-reply-to
Content
> For any valid string, strptime followed by strftime should return
> the same string.

Not necessarily.  String to datetime mapping implemented by strptime can be many to one.  For example,

>>> datetime.strptime("2014 366", "%Y %j") == datetime.strptime("2015 1", "%Y %j")
True

in this case, strptime-strftime may not round-trip.

>>> datetime.strptime("2014 366", "%Y %j").strftime("%Y %j")
'2015 001'
History
Date User Action Args
2014-12-31 17:40:25belopolskysetrecipients: + belopolsky, lemburg, serhiy.storchaka, jamercee, Saimadhav.Heblikar, torm
2014-12-31 17:40:25belopolskysetmessageid: <1420047625.05.0.108847973391.issue23136@psf.upfronthosting.co.za>
2014-12-31 17:40:25belopolskylinkissue23136 messages
2014-12-31 17:40:24belopolskycreate