[issue12750] datetime.strftime('%s') should respect tzinfo

2014-07-01 Thread Mümin Öztürk
Mümin Öztürk added the comment: more tests and some documentation added. -- Added file: http://bugs.python.org/file35816/strftime3.patch ___ Python tracker <http://bugs.python.org/issue12

[issue12750] datetime.strftime('%s') should respect tzinfo

2014-06-26 Thread Mümin Öztürk
Mümin Öztürk added the comment: I added an improved patch according to akira's explanation for strftime and rounding problem. -- Added file: http://bugs.python.org/file35785/strftime2.patch ___ Python tracker <http://bugs.python.org/is

[issue12750] datetime.strftime('%s') should respect tzinfo

2012-09-20 Thread Mümin Öztürk
Mümin Öztürk added the comment: I made a patch for datetime.strftime('%s'). it takes tzinfo into consideration. >>> datetime.datetime(1970,1,1).strftime("%s") '-7200' >>> datetime.datetime(1970,1,1, tzinfo=datetime.timezone.utc).strftim