https://github.com/joshuaclayton/date-math
A small parser and CLI for date calculations
https://github.com/joshuaclayton/date-math
cli dates productivity rust
Last synced: about 2 months ago
JSON representation
A small parser and CLI for date calculations
- Host: GitHub
- URL: https://github.com/joshuaclayton/date-math
- Owner: joshuaclayton
- License: mit
- Created: 2021-07-03T02:16:35.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2022-10-28T15:17:21.000Z (over 3 years ago)
- Last Synced: 2025-09-24T16:05:38.489Z (7 months ago)
- Topics: cli, dates, productivity, rust
- Language: Rust
- Homepage:
- Size: 38.1 KB
- Stars: 7
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# date-math


A small CLI for doing date calculations.
## Usage / Examples
### Full date plus a duration
```sh
date-math 'dec 30, 2021 + 2 weeks + 1 day'
2022-01-14
```
### Arbitrary durations
Given a date of July 2, 2021:
```sh
date-math '2 weeks + 3 days'
2021-07-19
```
## Installation
Given a working installation of Rust:
```sh
git clone git@github.com:joshuaclayton/date-math.git
cd date-math
cargo install --path .
```
## License
Copyright 2021 Josh Clayton. See the [LICENSE](LICENSE).