I have a date in the form of a datetime object and I want to add (for
example) three months to it.  At the moment I can't see any very
obvious way of doing this.  I need something like:-

    myDate = datetime.date.today()
    inc = datetime.timedelta(months=3)
    myDate += inc

but, of course, timedelta doesn't know about months. I had a look at
the calendar object but that didn't seem to help much.

-- 
Chris Green
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to