Denis Osipov added the comment:

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?

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue31498>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to