[Tutor] timedelta doesnt do month

Alan Gauld alan.gauld at btinternet.com
Tue Feb 6 10:32:23 CET 2007

"Kent Johnson" <kent37 at tds.net> wrote

> Because of the ambiguities of month arithmetic (what is 2005-1-31 
> plus
> one month?) datetime refuses to guess and does not support this.

> The third-party dateutil module is not as circumspect:
> In [1]: import datetime
> In [2]: startdate = datetime.date(2005,2,13)

As a matter of interest what would dateutil do with
the example above?

Just curious,

Alan G. 

More information about the Tutor mailing list