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 vstinner
Recipients heidar.rafn, vstinner
Date 2011-09-02.14:50:23
SpamBayes Score 0.019428806
Marked as misclassified No
Message-id <1314975024.26.0.793023160684.issue12886@psf.upfronthosting.co.za>
In-reply-to
Content
> ERROR no seconds in input string: minute=3, second=4

If you specificy "%S" in the format string, strptime() *requires* seconds. If seconds are optional in your format, you should call strptime() twice: first without '%S', then with '%S' if the first failed.

I don't consider your examples as bugs.
History
Date User Action Args
2011-09-02 14:50:24vstinnersetrecipients: + vstinner, heidar.rafn
2011-09-02 14:50:24vstinnersetmessageid: <1314975024.26.0.793023160684.issue12886@psf.upfronthosting.co.za>
2011-09-02 14:50:23vstinnerlinkissue12886 messages
2011-09-02 14:50:23vstinnercreate