How to add months to a date (datetime object)?

tinnews at isbd.co.uk tinnews at isbd.co.uk
Mon Mar 16 08:49:15 EDT 2009


Ned Deily <nad at acm.org> wrote:
> In article <49bd42ac$0$512$bed64819 at news.gradwell.net>,
>  tinnews at isbd.co.uk wrote:
> > I was just hoping there was some calendar object in Python which could
> > do all that for me (I need the handling of 31st and February etc.)
> 
> Whatever your requirement, chances are dateutil will be of help:
> 
> <http://labix.org/python-dateutil>
> 
Yes, you are right, I think dateutil does what I need and thus I won't
have to reinvent the wheel.  Thank you!

-- 
Chris Green



More information about the Python-list mailing list