Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Hexagon committed Nov 8, 2023
1 parent a9fd9ca commit 9e346e5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Add `croner` to your `Cargo.toml` dependencies:

```toml
[dependencies]
croner = "0.0.1" # Adjust the version as necessary
croner = "0.0.4" # Adjust the version as necessary
```

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

// Get next match
let next = cron_all.find_next_occurrence(&time).unwrap();
let next = cron_all.find_next_occurrence(&time, false).unwrap();

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

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

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

0 comments on commit 9e346e5

Please sign in to comment.