Author denis-osipov
Recipients belopolsky, brett.cannon, denis-osipov, r.david.murray
Date 2017-09-19.17:16:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1505841394.79.0.154948459721.issue31498@psf.upfronthosting.co.za>
In-reply-to
Content
Yes, C strftime returns the same. Inside of Python time.strftime() in Windows we give struct tm with inconsistent attributes (year, mon, mday and wday,yday) as argument for C strftime().

Before it timemodule does a lot of work to parse arguments of time.strftime() and check if all values in obtained struct tm are correct. Also it force values of some attributes to correct ones. Why don't make one more step (e.g. call C mktime before C strftime) to give C function a struct time argument with all consistent attributes?

Or Python time.strftime() should return exactly the same as C strftime?
History
Date User Action Args
2017-09-19 17:16:34denis-osipovsetrecipients: + denis-osipov, brett.cannon, belopolsky, r.david.murray
2017-09-19 17:16:34denis-osipovsetmessageid: <1505841394.79.0.154948459721.issue31498@psf.upfronthosting.co.za>
2017-09-19 17:16:34denis-osipovlinkissue31498 messages
2017-09-19 17:16:34denis-osipovcreate