Time

HMS Surprise john at datavoiceint.com
Mon May 14 18:04:54 EDT 2007


>
> Do you mean 12 Noon or 12 Midnight?   12AM and 12PM don't exist,
> do they?
>


>>> t = (2007, 5, 14, 12, 0,0,0,0,0)
>>> strftime('%p', t)
'PM'
>>> t = (2007, 5, 14, 0,0,0,0,0,0)
>>> strftime('%p', t)
'AM'
>>>




More information about the Python-list mailing list