On 30 Mar 2007, at 9:21 am, David Reynolds wrote:

>
> One of the things that annoys me about datetime is that it doesn't
> handle leap years properly. However, if you use python-dateutil[1] it
> has a relativedelta so you can do things like:
>
>>>> datetime.date.today()+relativedelta(years=+3)
> datetime.date(2010, 3, 30)
>
> .. which will take into account leap years too.
>

Woops, forgot to say:

[1] http://labix.org/python-dateutil

-- 
David Reynolds
[EMAIL PROTECTED]



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to