| Crates.io | nepdate-cli |
| lib.rs | nepdate-cli |
| version | 0.1.4 |
| created_at | 2024-10-19 06:29:55.622002+00 |
| updated_at | 2025-07-15 07:01:26.692391+00 |
| description | A library for converting between Gregorian and Bikram Sambat (Nepali) dates. |
| homepage | |
| repository | https://github.com/khumnath/nepdate-cli |
| max_upload_size | |
| id | 1415115 |
| size | 40,461 |
nepdate-cli is a simple command-line program built using the bikram library to convert dates between Bikram Sambat (Nepali calendar) and Gregorian dates.
First, clone the repository:
git clone --branch rust https://github.com/khumnath/nepdate-cli.git
cd nepdate-cli
Make sure to give execution permissions to the build.sh script:
chmod +x build.sh
Run the build.sh script to build the program and set up the build folder:
./build.sh
This script will:
target directory.The executable path should be printed in the terminal, and after 2 seconds, the program will be test run automatically.
cargo install nepdate-cli
Running the above command will globally install the nepdate-cli binary.
Run the following Cargo command in your project directory:
cargo add nepdate-cli
Or add the following line to your Cargo.toml:
nepdate-cli = "0.1.3"
nepdate-test-app folder has example of an application. use bikram::bikram::Bikram; should import bikram library after adding nepdate-cli dependency in application.
After building the program, you can use it to convert dates between the two calendar systems.
./target/release/nepdate-cli --conv --tobs <year> <month> <day>
Example:
./target/release/nepdate-cli --conv --tobs 2024 10 18
./target/release/nepdate-cli --conv --toad <year> <month> <day>
Example:
./target/release/nepdate-cli --conv --toad 2081 6 1
nepdate-cli is released under the GNU General Public License v3.0. See the LICENSE file for more details.
For any inquiries, you can reach out to khumnath cg.