rrule
rrule copied to clipboard
rrule feature request: flag called 'includeshortmonths' that works in coordination with 'bymonthday'
rrule feature request: flag called 'includeshortmonths' that works in coordination with 'bymonthday', as demonstrated by these examples:
e.g. bymonthday=31 includeshortmonths=True
returns Jan 31 2021, Feb 28 2021, Mar 31 2021, Apr 30 2021...
Note: result can be obtained with bymonthday=-1
e.g. bymonthday=30 includeshortmonths=True
returns Jan 30 2021, Feb 28 2021, Mar 30 2021, Apr 30 2021...
e.g. bymonthday=29 includeshortmonths=True
returns Jan 29 2021, Feb 28 2021, Mar 29 2021, Apr 29 2021...
Currently, setting bymonthday=30
will omit the month of Feb. Same with bymonthday=29
for non-leap years.
You can use
{
"bymonthday": [31, -1],
"bysetpos": [1]
}
to achieve this purpose.
I think this could be better documented - it's a common use case and the behaviour of bysetpos
is not very clear