Also try the dateutil module from http://niemeyer.net/python-dateutil

examples:

>>> NOW = datetime.now()
>>> NOW+relativedelta(months=+1, weeks=+1)
datetime.datetime(2003, 10, 24, 20, 54, 47, 282310)

>>> relativedelta(datetime(2003, 10, 24, 10, 0), TODAY)
relativedelta(months=+1, days=+7, hours=+10)

Reply via email to