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

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

Aperta
#10 5 commenti 0 reazioni 0 assegnatari Vedi su GitHub
good first issue help wanted
Lingua principale
Ruby
Stelle
0
Fork
0
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.