[Python-Dev] Status on PEP-431 Timezones
ethan at stoneleaf.us
Mon Jul 27 21:47:19 CEST 2015
On 07/27/2015 07:46 AM, Lennart Regebro wrote:
> On Mon, Jul 27, 2015 at 4:13 PM, Steven D'Aprano wrote:
>> To me, Paul's example is a datetime operation: you start with a datetime
>> (7am today), perform arithmetic on it by adding a period of time (one
>> day), and get a datetime as the result (7am tomorrow).
> Well, OK, let's propose these wordings: It looks like a date
> operation, ie, add one to the date, but in reality it's a time
> operation, ie add 86400 seconds to the time. These things sound
> similar but are very different.
I have to disagree. If I have my alarm at 7am (localtime ;) so I can be at work at 8am I don't care exactly how many seconds have passed, that alarm better go off at 7am local time.
More information about the Python-Dev