Jolly
12/20/2007 12:58:00 AM
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.