Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/skshetry/bscal
CLI for Nepali Calendar(BS) & Date Conversion Utilities
https://github.com/skshetry/bscal
bikram-sambat calendar cli python
Last synced: 2 months ago
JSON representation
CLI for Nepali Calendar(BS) & Date Conversion Utilities
- Host: GitHub
- URL: https://github.com/skshetry/bscal
- Owner: skshetry
- License: mit
- Created: 2024-01-01T18:18:21.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-05T11:49:23.000Z (7 months ago)
- Last Synced: 2024-10-11T10:30:32.300Z (3 months ago)
- Topics: bikram-sambat, calendar, cli, python
- Language: Python
- Homepage:
- Size: 20.5 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Bikram Sambat Calendar
### Installation
1. Using pip
```console
pip install bscal
```2. Using pipx
```console
pipx install bscal
```### Usage
#### Display calendar in BS format
```console
$ 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:
```console
$ bsdate
Tue Poush 17 09:14:14 +0545 2080
```#### Display a specific date (from given ISO format)
```console
$ bsdate 2016-09-08
Thu Bhadra 23 09:17:21 +0545 2073
```#### Display a specific date (represented as a Unix timestamp):
```console
$ bsdate 1473305798
Thu Bhadra 23 09:21:38 +0545 2073
```#### Convert BS date to AD format
```console
$ bsdate -c 2073-05-23
Thu Sep 8 09:19:00 +0545 2016
```