Tim Peters <t...@python.org> added the comment:

docstrings give brief statements intended to jog your memory; they're not 
intended to be comprehensive docs.  Read the actual documentation and see 
whether you're still confused.  When you "assumed it is irrelevant to time 
zone", that was your _assumption_, which the actual docs would have clarified.

The whole story simply can't be told here without docs that make the 
distinction between "naive" and "aware" datetime objects, and the connection to 
what your platform's C mktime() function does about your local time zone.  The 
brief docstring is correct that a POSIX timestamp is returned (a count of 
seconds from the UTC epoch).  But how that relates to the datetime object 
requires reading the docs, not blind guessing ;-)

----------

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

Reply via email to