Calendar and conversion utilities for Nepali dates
Inspired from the Linux command line tool cal
, nepcal
adds a few nifty features especially for Nepali (B.S) dates.
Complete instructions on how to use each of these features are mentioned below.
- Show the current Nepali month's calendar
- Show today's Nepali date and day
- Convert an A.D. date into B.S.
- Convert an B.S. date into A.D.
Pre-built tarball binaries are available in the Releases page. Download and untar the binary for your platform, then move it into your $PATH
e.g. /usr/local/bin
.
You might need to give the script execution permissions. On Linux and MacOS this would mean using chmod
as follows:
$ chmod +x /usr/local/bin/nepcal
Tap the repository first.
$ brew tap srishanbhattarai/nepcal https://github.com/srishanbhattarai/nepcal
Then, run:
$ brew install nepcal
You can also install nepcal
manually if you have Go installed
$ go get -v github.com/srishanbhattarai/nepcal
Run nepcal
on your terminal - if you see some formatted output, you are good to go!
Complete details can be found by running nepcal
without any arguments.
$ nepcal cal # or nepcal c
जेठ 3, 2075
Su Mo Tu We Th Fr Sa
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31 32
$ nepcal date # or nepcal d
सावन 29, 2075 मंगलबार
Use the mm-dd-yyyy
format when converting A.D. to B.S.
$ nepcal conv adtobs 08-21-1994
भदौ 5, 2051 आइतबार
Please file an issue if you have any problems with nepcal
or, have a look at the issues page for contributing on existing issues. Also, read the code of conduct.