python datetime get weekday name

>>> import datetime
>>> datetime.datetime.today()
datetime.datetime(2012, 3, 23, 23, 24, 55, 173504)
>>> datetime.datetime.today().weekday()
4

Here is what the above code is Doing:
1. Importing the datetime module.
2. Calling the datetime.datetime.today() function.
3. Calling the datetime.datetime.today().weekday() function.

The datetime.datetime.today() function returns a datetime object.

The datetime.datetime.today().weekday() function returns an integer, where 0 is Monday and 6 is Sunday.