Help %A in time.strftime(%A)
Ben Finney
bignose+hates-spam at benfinney.id.au
Wed Dec 19 21:23:14 EST 2007
jolly <jemnader at gmail.com> writes:
> import time
>
> today = time.localtime(time.time())
> theDate = time.strftime("%A %B %d", today)
> [...]
>
> can someone explain to me the %A and the %B?
Your first resort for more information about the standard library
should be the online standard library reference
<URL:http://docs.python.org/lib/>.
Searching that reference, you'll find the documentation for the time
module <URL:http://docs.python.org/lib/module-time.html> and
specifically the time.strftime function
<URL:http://docs.python.org/lib/module-time.html#l2h-2816> which
describes the format codes it expects.
--
\ "Democracy is the art of running the circus from the monkey |
`\ cage." -- Henry L. Mencken |
_o__) |
Ben Finney
More information about the Python-list
mailing list