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

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

オープン
#10 コメント 5 件 リアクション 0 件 担当者 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 を短くまとめたダイジェスト。