Skip to content

Commit 9e346e5

Browse files
committed
Update README.md
1 parent a9fd9ca commit 9e346e5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Add `croner` to your `Cargo.toml` dependencies:
3030

3131
```toml
3232
[dependencies]
33-
croner = "0.0.1" # Adjust the version as necessary
33+
croner = "0.0.4" # Adjust the version as necessary
3434
```
3535

3636
### Usage
@@ -51,7 +51,7 @@ fn main() {
5151
let matches_all = cron_all.is_time_matching(&time).unwrap();
5252

5353
// Get next match
54-
let next = cron_all.find_next_occurrence(&time).unwrap();
54+
let next = cron_all.find_next_occurrence(&time, false).unwrap();
5555

5656
// Output results
5757
println!("Time is: {}", time);
@@ -77,7 +77,7 @@ fn main() {
7777

7878
// Find the next occurrence in EST
7979
let time_est = Local::now().with_timezone(&est_timezone);
80-
let next_est = cron.find_next_occurrence(&time_est).unwrap();
80+
let next_est = cron.find_next_occurrence(&time_est, false).unwrap();
8181

8282
// Output results for EST
8383
println!("EST time is: {}", time_est);

0 commit comments

Comments
 (0)