Skip to content

📆 Calendar and conversion utilities for Nepali dates, powered by Go.

License

Notifications You must be signed in to change notification settings

mesaugat/nepcal

 
 

Repository files navigation

nepcal · Build Status Build status Coverage Status Go Report Card GoDoc

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.

Feature Rundown

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.

Installation

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

MacOS via Homebrew

Tap the repository first.

$ brew tap srishanbhattarai/nepcal https://github.com/srishanbhattarai/nepcal

Then, run:

$ brew install nepcal

Manual Installation

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!

Usage

Complete details can be found by running nepcal without any arguments.

Monthly Calendar

$ 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

Today's date and day

$ nepcal date # or nepcal d

सावन 29, 2075 मंगलबार

Convert A.D. date to B.S.

Use the mm-dd-yyyy format when converting A.D. to B.S.

$ nepcal conv adtobs 08-21-1994

भदौ 5, 2051 आइतबार

Contributing

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.

License

MIT

About

📆 Calendar and conversion utilities for Nepali dates, powered by Go.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 98.2%
  • Ruby 1.4%
  • Makefile 0.4%