Crates.io | date-calc-rs |
lib.rs | date-calc-rs |
version | 0.2.1 |
source | src |
created_at | 2024-11-01 00:34:14.31712 |
updated_at | 2024-11-01 00:48:58.213107 |
description | Given a number of days, calculates the date from today |
homepage | |
repository | |
max_upload_size | |
id | 1431112 |
size | 16,130 |
A simple command-line application written in Rust that calculates a future date based on the number of days added to the current date.
To build and run this application, you need to have Rust and Cargo installed on your machine. If you haven't installed Rust yet, you can do so by following the instructions at rust-lang.org.
Once Rust is installed, you can clone this repository and build the project:
git clone <repository-url>
cd <repository-name>
cargo build --release
You can run the application using the following command:
./target/release/date-calc-rs <DAYS>
-d
or --date-only
: (Optional) Display only the dateTo calculate the date 10 days from now:
./target/release/date-calc-rs 10
Output:
In 10 days the date will be 11-11-2024
Or with the date-only flag:
./target/release/date-calc-rs --date-only 10
Output:
11-11-2024
This project uses the following dependencies:
This project is licensed under the MIT license