On Sat, Oct 6, 2012 at 7:19 PM, Richard D. Moores <rdmoo...@gmail.com> wrote:
>
> But now I'm thinking it would be handy to not only know that, say, 500
> days from today is 2014-02-18, but to know what day if the week that
> is.

    >>> from datetime import date
    >>> date(2014, 2, 18).strftime("%A")
    'Tuesday'

http://docs.python.org/library/datetime#strftime-and-strptime-behavior
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to