Skip to content
/ bscal Public

CLI for Nepali Calendar(BS) & Date Conversion Utilities

License

Notifications You must be signed in to change notification settings

skshetry/bscal

Repository files navigation

Bikram Sambat Calendar

Installation

  1. Using pip
pip install bscal
  1. Using pipx
pipx install bscal

Usage

Display calendar in BS format

$ bscal
     Poush 2080
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

Tip

You can provide year to display a calendar for that year, and also optionally specify the month for a specific month's calendar.

Display the current BS date:

$ bsdate
Tue Poush 17 09:14:14 +0545 2080

Display a specific date (from given ISO format)

$ bsdate 2016-09-08
Thu Bhadra 23 09:17:21 +0545 2073

Display a specific date (represented as a Unix timestamp):

$ bsdate 1473305798
Thu Bhadra 23 09:21:38 +0545 2073

Convert BS date to AD format

$ bsdate -c 2073-05-23
Thu Sep  8 09:19:00 +0545 2016