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 dlroo
Recipients akira, belopolsky, dlroo, doughellmann, lemburg, vstinner
Date 2015-07-31.18:11:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Is it possible to modify datetime so that the check_time_args function in the datetimemodule.c does not error when given a seconds value of greater than 59?  I was thinking that if the seconds were greater than 59, the seconds are set to 59 and any extra seconds are kept in a book keeping "attribute" (not a real attribute because its C) that is accessible from the Python side?  You would have to make the seconds argue passed by reference (thus returning a modified second).  Also would want the book keeping value to be zero in nominal conditions.
This would do nothing for any of the datetime arithmetic, but that can be handled externally.
Date User Action Args
2015-07-31 18:11:50dlroosetrecipients: + dlroo, lemburg, belopolsky, vstinner, doughellmann, akira
2015-07-31 18:11:50dlroosetmessageid: <>
2015-07-31 18:11:50dlroolinkissue23574 messages
2015-07-31 18:11:49dlroocreate