An open API service indexing awesome lists of open source software.

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.

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`.