Bubble Foundry


Simple Fun with Python’s Datetime Libraries

by Peter.

My Apple iPhone Developer account expires in 56 days, so I wanted to know what expiration date I should mark in my calendar. Here’s how I calculated it from the Python console:

>>> import datetime
>>> datetime.date.today() + datetime.timedelta(days=56)
datetime.date(2009, 11, 8)