ndate is a command-line tool for displaying and converting dates between the Bikram Sambat (Vikram Samvat) and Gregorian calendars. It's a simple utility designed for easy interaction with these two calendar systems.
- Display the current Bikram Sambat date.
- Convert dates between Bikram Sambat and Gregorian calendars.
- Supports very long date range.
There are two installation methods available: using a Debian package or compiling from source.
- Download the latest
.deb
file from the releases page. - Install the package using
dpkg
:
Bash
sudo dpkg -i ndate_1.0.0_amd64.deb
Replace ndate_1.0.0_amd64.deb
with the filename of the downloaded package.
- Clone the repository:
Bash
git clone https://github.com/khumnath/ndate.git
cd ndate
- Install dependencies:
Bash
sudo apt-get update
sudo apt-get install -y cmake build-essential debhelper devscripts
- packages debhelper and devscripts are for building debian installer package.
- Build and install:
Bash
mkdir build
cd build
cmake ..
make
sudo make install
- if need to build deb package, run
dpkg-buildpackage -b
aftermake
Once installed, you can use ndate from the command line. Here are some basic commands:
- Display the current Bikram Sambat date:
Bash
ndate
- Convert to Bikram Sambat
ndate --conv --tobs 2024 8 10
- Convert a Bikram Sambat date to Gregorian:
ndate --conv --toad 2081 4 26
Contributions are welcome! If you have any bug reports or feature requests, please open an issue on the GitHub repository.
Here's a quick guide to contributing code:
- Fork the repository.
- Create a new branch for your changes.
- Commit your changes and push them to your fork.
- Open a pull request against the main branch of the original repository.
ndate 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.