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

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

未关闭
#10 5 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
good first issue help wanted
主要语言
Ruby
星标
0
派生
0
PR 合并指标
30 天内没有已合并 PR

描述

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!
```

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。