https://github.com/thekuwayama/cron_cal
CLI & Wasm to calculate cron schedules
https://github.com/thekuwayama/cron_cal
cli cron rust wasm webassembly
Last synced: 9 months ago
JSON representation
CLI & Wasm to calculate cron schedules
- Host: GitHub
- URL: https://github.com/thekuwayama/cron_cal
- Owner: thekuwayama
- License: apache-2.0
- Created: 2022-03-27T11:02:41.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-10-25T20:28:44.000Z (over 2 years ago)
- Last Synced: 2025-10-12T09:13:41.646Z (9 months ago)
- Topics: cli, cron, rust, wasm, webassembly
- Language: Rust
- Homepage: https://thekuwayama.github.io/cron_cal/
- Size: 1.94 MB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# cron_cal
[](https://crates.io/crates/cron_cal)
[](https://github.com/thekuwayama/cron_cal/actions?workflow=CI)
[](https://raw.githubusercontent.com/thekuwayama/cron_cal/main/LICENSE-APACHE)
`cron_cal` is CLI to calculate cron schedules.
## Install
You can install `cron_cal` with the following:
```sh-session
$ cargo install cron_cal
```
## Usage
```sh-session
$ cron_cal --help
cron_cal 0.1.0
CLI to calculate cron schedules
USAGE:
cron_cal [OPTIONS]
OPTIONS:
-d, --date start date [default: 2022-04-07]
--days target days [default: 1]
-h, --help Print help information
-V, --version Print version information
```
You can calculate cron schedules with the following:
```sh-session
$ cat << EOS | cron_cal
> "30 9 * * * *", 5
> "30 12 * * * *", 5
> "30 15 * * * *", 5
> EOS
2022-04-07 09:30 ~ 2022-04-07 09:35
2022-04-07 12:30 ~ 2022-04-07 12:35
2022-04-07 15:30 ~ 2022-04-07 15:35
```
### Input Format
```
minute (0-59)
| hour (0-23)
| | day of the month (1-31)
| | | month of the year (1-12)
| | | | day of the week (0-6 with 0=Sunday)
| | | | | year, optionaly (1970-2100)
"* * * * * (*)", ${run time}
```
## GUI
`cron_cal_wasm` is a Web Application to calculate cron schedules using Wasm.
- https://thekuwayama.github.io/cron_cal/

## License
Licensed under either of
- Apache License, Version 2.0 ([LICENSE-APACHE](https://github.com/thekuwayama/cron_cal/blob/main/LICENSE-APACHE) or http://apache.org/licenses/LICENSE-2.0)
- MIT license ([LICENSE-MIT](https://github.com/thekuwayama/cron_cal/blob/main/LICENSE-MIT) or http://opensource.org/licenses/MIT)