[Python-ideas] Please reconsider the Boolean evaluation of midnight
Greg
greg.ewing at canterbury.ac.nz
Fri Mar 7 03:12:36 CET 2014
On 7/03/2014 1:13 p.m., Chris Angelico wrote:
> What operations can you do on a time-of-day-with-timezone? Give me
> some examples, and I'll show you, with the above two examples, how
> quirky that can be.
I'm not particularly attached to the idea of times of day with
timezones; I wouldn't mind if they didn't exist.
The main point is that they definitely don't make sense for
time differences. An hour in New York is the same length as
an hour in Melbourne, on any day of the year, as far as I know.
(At least in modern times. It seems the Romans divided daytime
and nighttime into 12 equal hours each, so that the length of
an hour varied with latitude and time of year, and daytime
hours were a different length from nighttime hours! I hate to
think what a Python datetime module would have looked like
back then.)
--
Greg
More information about the Python-ideas
mailing list