Message302548
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? |
|
Date |
User |
Action |
Args |
2017-09-19 17:16:34 | denis-osipov | set | recipients:
+ denis-osipov, brett.cannon, belopolsky, r.david.murray |
2017-09-19 17:16:34 | denis-osipov | set | messageid: <1505841394.79.0.154948459721.issue31498@psf.upfronthosting.co.za> |
2017-09-19 17:16:34 | denis-osipov | link | issue31498 messages |
2017-09-19 17:16:34 | denis-osipov | create | |
|