https://github.com/alilleybrinker/dcalc
Add and subtract durations to find out how long something takes.
https://github.com/alilleybrinker/dcalc
cli
Last synced: 10 months ago
JSON representation
Add and subtract durations to find out how long something takes.
- Host: GitHub
- URL: https://github.com/alilleybrinker/dcalc
- Owner: alilleybrinker
- License: mit
- Created: 2021-10-25T22:28:03.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-11-06T15:03:33.000Z (over 4 years ago)
- Last Synced: 2025-07-25T19:58:20.618Z (11 months ago)
- Topics: cli
- Language: Rust
- Homepage:
- Size: 19.5 KB
- Stars: 10
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# dcalc
`dcalc` is a little CLI duration calculator handling addition and
subtraction of weeks, days, hours, minutes, and seconds.
## Examples
```sh
$ dcalc 5m 32s + 4m 2s
9m 34s
$ dcalc 23h + 5h
1d 4h
$ dcalc 30s + 600s
10m 30s
```
## Installation
`dcalc` is written in Rust. Install `dcalc` with `cargo install dcalc`.
Note that this requires Rust version 1.56 at minimum.
## Contributing
Contributions are welcome. Feel free to open issues or make pull requests.
## License
`dcalc` is MIT licensed. See the full license in `LICENSE.md`.