time module methods give an am or pm value ?
d.a.abernathy at gmail.com
Mon Jun 9 22:36:41 CEST 2008
On Jun 7, 9:24 am, "Mark Tolonen" <M8R-yft... at mailinator.com> wrote:
> "dj" <d.a.aberna... at gmail.com> wrote in message
> news:2309efff-5c6b-4434-a2cd-01c3fee86fee at l42g2000hsc.googlegroups.com...
> > Hello again,
> > Does anyone know which method in the time module will generate and am
> > or pm ?
> > If none of the method will do this for me. Can I produce the value on
> > my own ?
> > Any suggestions ?
> >>> from time import *
> >>> strftime('%I:%M:%S %p',localtime(time()))
> '07:23:24 AM'
> >>> strftime('%I:%M:%S %p',gmtime(time()))
> '02:23:39 PM'
Thank you very much. I finally found this function in the
More information about the Python-list