a5-stable / a5-stable/parse-cron-ext

Support `L` notation in `Day-of-week`

Open
#10 5 comments 0 reactions 0 assignees View on GitHub
good first issue help wanted
Dominant language
Ruby
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Now we can use L at `Day-of-month` like the following example;

```
cron_parser = CronParser.new('0 9 L * *')

time = Time.local(2022, 1, 16, 12, 0)
cron_parser.next(time)
# => 2022-01-31 09:00
```

I'd like to support L notation at `Day-of-week` in order to specify the last day of the week.

```
cron_parser = CronParser.new('0 9 * * 4L')

time = Time.local(2022, 1, 16, 12, 0)
cron_parser.next(time)
# => 2022-01-27 09:00

# Last Friday in this month!
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.