[Python-Dev] Issue5434: datetime.monthdelta
Steven D'Aprano
steve at pearwood.info
Fri Apr 17 04:34:20 CEST 2009
On Fri, 17 Apr 2009 12:29:11 pm Steven D'Aprano wrote:
> Adding one month to 31st January could mean:
>
> 1: raise an exception
> 2: return 28th February (last day of February)
> 3: return 3rd April (1 month = 31 days)
> 4: return 2nd April (1 month = 30 days)
> 5: return 28th February (1 month = 4 weeks = 28 days)
Obviously I meant March, not April. Oops.
--
Steven D'Aprano
More information about the Python-Dev
mailing list