time module methods give an am or pm value ?

Scott David Daniels Scott.Daniels at Acm.Org
Sat Jun 7 10:40:27 EDT 2008

dj wrote:
> 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 ?

Read up about strftime (a function, not a method).

Generally, if you know you'll be using something for more than a few
uses, it is worth reading the entire documentation for that module.
People put a fair amount of effort into documentation, and they do it
to reduce the number of questions they have to answer one user at a
time.  Reading the results of that effort before asking shows courtesy.
Few people mind explaining unclear documentation when the confusing part
is identified (and they know the answer).  Similarly, asking (5000?, a
million?) to each spend a second so you can save an hour is bad economics.

--Scott David Daniels
Scott.Daniels at Acm.Org

More information about the Python-list mailing list