471,330 Members | 1,813 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,330 software developers and data experts.

Help %A in time.strftime(%A)

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.
Dec 20 '07 #1
0 972

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Richard | last post: by
1 post views Thread by Allen Unueco | last post: by
4 posts views Thread by Andy Leszczynski | last post: by
5 posts views Thread by Swansea University Psychology | last post: by
1 post views Thread by Benny Schudel | last post: by
5 posts views Thread by HMS Surprise | last post: by
3 posts views Thread by binaryjesus | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.