a5-stable / a5-stable/parse-cron-ext
Support `L` notation in `Day-of-week`
Đang mở
good first issue
help wanted
- Ngôn ngữ chính
- Ruby
- Star
- 0
- Fork
- 0
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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!
```
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.