rrule icon indicating copy to clipboard operation
rrule copied to clipboard

rrule feature request: flag called 'includeshortmonths' that works in coordination with 'bymonthday'

Open mkruglyak opened this issue 2 years ago • 2 comments

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.

mkruglyak avatar Jun 21 '22 16:06 mkruglyak

You can use

{
  "bymonthday": [31, -1],
  "bysetpos": [1]
}

to achieve this purpose.

allenm avatar Sep 14 '22 09:09 allenm

I think this could be better documented - it's a common use case and the behaviour of bysetpos is not very clear

agos avatar Oct 12 '22 16:10 agos