Roundup Tracker - Issues

Message6818

Author ThomasAH
Recipients ThomasAH, ber
Date 2019-11-13.15:39:56
Message-id <1573659596.55.0.0585221384707.issue2550858@roundup.psfhosted.org>
In-reply-to
A similar problem occurs when adding/substracting years when the
current day does not exist in the target year, i.e. only for
February 29th:

This works as expected:
>>> date.Date('2020-02-29') + date.Interval('+4y')
<Date 2024-02-29.00:00:00.000>

Here you can see the issue:
>>> date.Date('2020-02-29') + date.Interval('+1y')
<Date 2021-03-01.00:00:00.000>
>>> date.Date('2020-02-29') + date.Interval('-1y')
<Date 2019-03-01.00:00:00.000>
History
Date User Action Args
2019-11-13 15:39:56ThomasAHsetmessageid: <1573659596.55.0.0585221384707.issue2550858@roundup.psfhosted.org>
2019-11-13 15:39:56ThomasAHsetrecipients: + ThomasAH, ber
2019-11-13 15:39:56ThomasAHlinkissue2550858 messages
2019-11-13 15:39:56ThomasAHcreate