R. David Murray added the comment:

No, localtime does something subtly different, in that it will accept a naive 
datetime add the local timezone to it.  Calling localtime() is also more 
convenient/readable than calling datetime.now().astimezone().

----------

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

Reply via email to