Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implementing weekofmonth #43

Open
thomassth opened this issue Oct 8, 2022 · 1 comment
Open

Implementing weekofmonth #43

thomassth opened this issue Oct 8, 2022 · 1 comment
Labels
T: Feature Type: New Features

Comments

@thomassth
Copy link
Contributor

Hi, we're trying to implement rrule into handling device calendar events. One of the hurdle is translating Week Of Month into rrule settings. For example, 4th week of the month, last week (-1) of the month etc.

Will it be implemented into rrule?

Reference:
https://developer.apple.com/documentation/foundation/nsdatecomponents/1413168-weekofmonth

@thomassth thomassth added the T: Feature Type: New Features label Oct 8, 2022
@GoldenSoju
Copy link

@thomassth
Do you maybe mean the week entry for the BYDAY part of a Recurrence Rule?
At the moment the rrule package has the ByWeekDayEntry Class which includes the weekday and the week occurence.
In a recurrence rule string represented like:

FREQ=MONTHLY;BYDAY=-2FR;COUNT=7

Which would be every month on the 2nd last Friday for 7 times.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T: Feature Type: New Features
Projects
None yet
Development

No branches or pull requests

2 participants