[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" <email@example.com> 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:17 AM.|
SEO by vBSEO ©2010, Crawlability, Inc.