[Python-Dev] PEP 495 accepted (original) (raw)

francismb francismb at email.de
Thu Sep 24 22:13:17 CEST 2015


On 09/24/2015 04:47 AM, Nick Coghlan wrote:

On 24 Sep 2015 01:21, "Tim Peters" <tim.peters at gmail.com> wrote:

Guido's reply gave a clearer invariant: dt.timestamp() == dt.astimezone(utc).timestamp() == dt.astimezone().timestamp()

Might it be worth mentioning Guido's invariant in the section of the PEP about the timestamp method?

Or maybe worth adding it as unittest?

Regards, francis



More information about the Python-Dev mailing list