breejs / later

*Maintained fork of Later.* A javascript library for defining recurring schedules and calculating future (or past) occurrences for them. Includes support for using English phrases and Cron schedules. Works in Node and in the browser.
https://breejs.github.io/later/
MIT License
134 stars 13 forks source link

Support LW on day component #2

Open thefat32 opened 3 years ago

thefat32 commented 3 years ago

Support Quartz syntax "LW" as "last weekday of the month"

Example:

0 14 LW * ?

Next 5 executions from today:

09/30/2020 14:00:00
10/30/2020 14:00:00
11/30/2020 14:00:00
12/31/2020 14:00:00
01/29/2021 14:00:00

Reference from quartz-scheduler docs:

The 'L' and 'W' characters can also be combined for the day-of-month expression to yield 'LW', which translates to "last weekday of the month".

chrisszeluga commented 1 year ago

Expressing support for this feature. "LW" does not function as expected.