{"id":14235609,"url":"https://github.com/zslayton/cron","last_synced_at":"2025-08-11T00:31:56.984Z","repository":{"id":33772952,"uuid":"37429889","full_name":"zslayton/cron","owner":"zslayton","description":"A cron expression parser in Rust","archived":false,"fork":false,"pushed_at":"2024-11-06T19:42:57.000Z","size":171,"stargazers_count":364,"open_issues_count":20,"forks_count":69,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-11-06T20:34:28.053Z","etag":null,"topics":["cron","cron-expression-parser","rust","schedule"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zslayton.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-06-14T21:16:41.000Z","updated_at":"2024-11-06T19:41:46.000Z","dependencies_parsed_at":"2024-10-28T13:04:14.527Z","dependency_job_id":"8e96b1b3-f51d-47d3-ba50-ab670bdbfe94","html_url":"https://github.com/zslayton/cron","commit_stats":{"total_commits":97,"total_committers":24,"mean_commits":4.041666666666667,"dds":0.5876288659793815,"last_synced_commit":"9d54fb7d1c1679136d92f411a7403b774a92d56b"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zslayton%2Fcron","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zslayton%2Fcron/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zslayton%2Fcron/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zslayton%2Fcron/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zslayton","download_url":"https://codeload.github.com/zslayton/cron/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229478678,"owners_count":18079372,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cron","cron-expression-parser","rust","schedule"],"created_at":"2024-08-20T21:02:08.966Z","updated_at":"2024-12-13T01:30:25.019Z","avatar_url":"https://github.com/zslayton.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"# cron [![Rust](https://github.com/zslayton/cron/workflows/Rust/badge.svg)](https://github.com/zslayton/cron/actions) [![](https://img.shields.io/crates/v/cron.svg)](https://crates.io/crates/cron) [![](https://docs.rs/cron/badge.svg)](https://docs.rs/cron)\nA cron expression parser. Works with stable Rust v1.28.0.\n\n```rust\nuse cron::Schedule;\nuse chrono::Utc;\nuse std::str::FromStr;\n\nfn main() {\n  //               sec  min   hour   day of month   month   day of week   year\n  let expression = \"0   30   9,12,15     1,15       May-Aug  Mon,Wed,Fri  2018/2\";\n  let schedule = Schedule::from_str(expression).unwrap();\n  println!(\"Upcoming fire times:\");\n  for datetime in schedule.upcoming(Utc).take(10) {\n    println!(\"-\u003e {}\", datetime);\n  }\n}\n\n/*\nUpcoming fire times:\n-\u003e 2018-06-01 09:30:00 UTC\n-\u003e 2018-06-01 12:30:00 UTC\n-\u003e 2018-06-01 15:30:00 UTC\n-\u003e 2018-06-15 09:30:00 UTC\n-\u003e 2018-06-15 12:30:00 UTC\n-\u003e 2018-06-15 15:30:00 UTC\n-\u003e 2018-08-01 09:30:00 UTC\n-\u003e 2018-08-01 12:30:00 UTC\n-\u003e 2018-08-01 15:30:00 UTC\n-\u003e 2018-08-15 09:30:00 UTC\n*/\n```\n\n## License\n\nLicensed under either of\n * Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or https://www.apache.org/licenses/LICENSE-2.0)\n * MIT license ([LICENSE-MIT](LICENSE-MIT) or https://opensource.org/licenses/MIT)\nat your option.\n\n### Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in the work by you shall be dual licensed as above, without any\nadditional terms or conditions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzslayton%2Fcron","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzslayton%2Fcron","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzslayton%2Fcron/lists"}