Help %A in time.strftime(%A)

Discussion in 'Python' started by jolly, Dec 20, 2007.

  1. jolly

    jolly Guest

    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.
     
    jolly, Dec 20, 2007
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Allen Unueco

    time.strftime Timezone issue

    Allen Unueco, Jun 13, 2004, in forum: Python
    Replies:
    1
    Views:
    366
    Allen Unueco
    Jun 13, 2004
  2. Tim Peters

    RE: time.strftime Timezone issue

    Tim Peters, Jun 13, 2004, in forum: Python
    Replies:
    1
    Views:
    776
    Allen Unueco
    Jun 13, 2004
  3. Tim Peters

    RE: time.strftime Timezone issue

    Tim Peters, Jun 13, 2004, in forum: Python
    Replies:
    0
    Views:
    685
    Tim Peters
    Jun 13, 2004
  4. jolly

    Help %A in time.strftime(%A)

    jolly, Dec 20, 2007, in forum: Python
    Replies:
    2
    Views:
    337
    Ben Finney
    Dec 20, 2007
  5. Greg Krohn
    Replies:
    1
    Views:
    991
    Denis Kasak
    Feb 17, 2009
Loading...

Share This Page