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

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

Ouverte
#10 5 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
good first issue help wanted
Langage dominant
Ruby
Étoiles
0
Forks
0
Métriques de merge des PR
Aucune PR mergée en 30 j

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

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.