File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments