[newbie] Manipulating Dates
How do I do the following with the Date object:
newDate = oldDate + 3 months
What would that be in Python code?
Re: [newbie] Manipulating Dates
"Elliot Clifton" <firstname.lastname@example.org> wrote in message
> X-No-archive: yes
> How do I do the following with the Date object:
> newDate = oldDate + 3 months
> What would that be in Python code?
In python 23 the datetime module if for date calculations
some_date = datetime.date(2003,9,18)
add_date = datetime.timedelta(weeks=12)
new_date = some_date + add_date
datetime.date(2003, 12, 11)
|All times are GMT. The time now is 05:35 PM.|
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.