Skip to content

Add support for LW, W and L to unix cron tab expressions - #671

Open
austek wants to merge 2 commits into
jmrozanec:masterfrom
austek:fix/issue_670
Open

Add support for LW, W and L to unix cron tab expressions#671
austek wants to merge 2 commits into
jmrozanec:masterfrom
austek:fix/issue_670

Conversation

@austek

@austek austek commented Jun 18, 2025

Copy link
Copy Markdown
Contributor

Add support for LW, W and L to unix cron tab expressions

fixes #670

@austek

austek commented May 21, 2026

Copy link
Copy Markdown
Contributor Author

@jmrozanec could I get a review on this PR?

W means "nearest weekday to the nth day of month" and only
OnDayOfMonthValueGenerator implements it. Allowing it on day of week let
expressions such as "0 0 * * 5W" parse while never producing an execution,
with CronDescriptor silently dropping the modifier. Quartz and Spring53
omit W from day of week for the same reason.

Add Issue670Test covering parsing, scheduling and description of L, L-n,
nW, LW and nL on the unix definition, including a guard that W stays
rejected on day of week, and add the unix to quartz mapping direction.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for LW, W and L to unix cron tab expressions

1 participant