[Python-ideas] bool(datetime.time(0, 0))
M.-A. Lemburg
mal at egenix.com
Mon May 7 20:25:26 CEST 2012
Alexander Belopolsky wrote:
> On Mon, May 7, 2012 at 1:49 PM, M.-A. Lemburg <mal at egenix.com> wrote:
>>> My understanding is that 24:00 hours is only really used by the military to avoid misunderstanding
>>> over the actual day they're talking about. The night of 5th/6th June 1944 springs to my mind. I'll
>>> happily be corrected.
>>
>> It's in common use in Germany, e.g. for describing opening hours.
>
> Properly supporting 24:00 timestamps in datetime module is actually a
> more interesting issue than what bool(time(0)) should be. See
> http://bugs.python.org/issue10427
Just to clarify: 24:00 is used when describing times, but not in
timestamps (those use 00:00 and the next day). E.g. it's common
to write: "open 00:00-24:00" or "open 18:00-24:00".
I've never seen anything like "2011-12-31 24:00" in Germany,
but Google suggests that it's in common use in Asia:
https://www.google.de/search?q=%222011-12-31+24:00%22
--
Marc-Andre Lemburg
eGenix.com
Professional Python Services directly from the Source (#1, May 07 2012)
>>> Python/Zope Consulting and Support ... http://www.egenix.com/
>>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/
>>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/
________________________________________________________________________
2012-07-02: EuroPython 2012, Florence, Italy 56 days to go
2012-04-26: Released mxODBC 3.1.2 http://egenix.com/go28
2012-04-25: Released eGenix mx Base 3.2.4 http://egenix.com/go27
::: Try our new mxODBC.Connect Python Database Interface for free ! ::::
eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48
D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
Registered at Amtsgericht Duesseldorf: HRB 46611
http://www.egenix.com/company/contact/
More information about the Python-ideas
mailing list