Skip to content

Commit

Permalink
Add the second extension section to readme
Browse files Browse the repository at this point in the history
closes gh-91
  • Loading branch information
jmettraux committed Oct 25, 2023
1 parent 48cfb40 commit 15a3af8
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,18 @@ c.match?('2019-01-08') # => false, since (rweek + 1) % 2 == 1
`tue%x+y` matches if Tuesday and `current_date.rweek + y % x == 0`


### the second extension

Fugit accepts cron strings with five elements, `minute hour day-of-month month day-of-week`, the standard cron format or six elements `second minute hour day-of-month month day-of-week`.

```ruby
c = Fugit.parse('* * * * *') # every minute
c = Fugit.parse('5 * * * *') # every hour at minute 5
c = Fugit.parse('* * * * * *') # every second
c = Fugit.parse('5 * * * * *') # every minute at second 5
```


## `Fugit::Duration`

A class `Fugit::Duration` to parse duration strings (vanilla [rufus-scheduler](https://github.com/jmettraux/rufus-scheduler) ones and [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) ones).
Expand Down

0 comments on commit 15a3af8

Please sign in to comment.