Help %A in time.strftime(%A)

J

jolly

Hey guys,

I'm following a tutorial on Python and I came across this in one of
the examples.
(Toggle Plain Text)

import time

today = time.localtime(time.time())
theDate = time.strftime("%A %B %d", today)

print today
print theDate

import time today = time.localtime(time.time()) theDate =
time.strftime("%A %B %d", today) print today print theDate
Result:
(Toggle Plain Text)

(2007, 12, 20, 9, 48, 15, 3, 354, 1)
Thursday December 20

(2007, 12, 20, 9, 48, 15, 3, 354, 1) Thursday December 20

can someone explain to me the %A and the %B?

Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top