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

Alexander Belopolsky report at bugs.python.org
Tue Jun 24 02:26:57 CEST 2014


Alexander Belopolsky added the comment:

> It is not clear what the returned value for %s strptime should be:

I would start conservatively and require %z to be used with %s.  In this case, we can easily produce aware datetime objects.

I suspect that in the absence of %z, the most useful option would be to return naive datetime in the local timezone, but that can be added later.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12750>
_______________________________________


More information about the Python-bugs-list mailing list