Time

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Mon May 14 16:54:25 EDT 2007


En Mon, 14 May 2007 16:20:27 -0300, Grant Edwards <grante at visi.com>  
escribió:

>>>> On May 14, 9:22 am, HMS Surprise <j... at datavoiceint.com> wrote:
>>>>
>>>> Oops +=1, should be:
>>>>  hrMn[0] = int(hrMn[0]
>>>>  if t[2] == 'PM':
>>>>      hrMn[0] += 12
>>>>
>>>> Need more starter fluid, coffee please!!!
>>>
>>> Still won't work for 12 AM nor 12 PM...
>>
>> Do you mean 12 Noon or 12 Midnight?   12AM and 12PM don't exist,
>> do they?
>
> http://www.astronomy.net/articles/13/

No. Even ignoring that exact instant at Noon or Midnight, 12:01 PM  
translates into itself, 12:01, on a 24 hr clock; and 12:01 AM becomes 0:01  
on a 24 hr clock. For hours between 01 PM and 11 PM, yes, you can follow  
the rule "add 12".

-- 
Gabriel Genellina




More information about the Python-list mailing list