[Python-ideas] Please reconsider the Boolean evaluation of midnight

Greg Ewing greg.ewing at canterbury.ac.nz
Thu Mar 6 06:22:07 CET 2014


M.-A. Lemburg wrote:
> This is true in a date/time continuum, but not true if you regard
> time as "time of day". In the latter interpretation, the day starts
> at midnight,

That's not always the most convenient way of looking at
it. For example, for booking a stay in a hotel, it may
be better to think of "nights" as stretching from
midday to midday.

-- 
Greg


More information about the Python-ideas mailing list