Metadata-Version: 2.1
Name: pyBSDate
Version: 0.3.0rc1
Summary: Python BS date conversion utility
Home-page: https://github.com/SushilShrestha/pyBSDate
Author: sushil
Author-email: afahocci@gmail.com
License: MIT
Download-URL: https://github.com/SushilShrestha/pyBSDate/tarball/0.3.0rc
Platform: UNKNOWN
Description-Content-Type: text/markdown

# pyBSDate
![PyPI](https://img.shields.io/pypi/v/pyBSDate)
![PyPI - Downloads](https://img.shields.io/pypi/dm/pyBSDate)
[![GitHub license](https://img.shields.io/github/license/SushilShrestha/pyBSDate)](https://github.com/SushilShrestha/pyBSDate/blob/master/License)



Python implementation of Date conversion From Bikram Sambat(BS) to English Date(AD) and viceversa.
Conversion is done with the help of date mappings so conversion limited to certain range of date.
#### Tested with python 2.7 and should be ok with python 3

## Installation Instruction
1. Get a copy of the project. Download zip of the project or clone this repo:
```
git clone https://github.com/SushilShrestha/pyBSDate
``` 
2. Open your terminal, navigate to the project folder and type
```
python setup.py install
```

OR 

If you have pip installed, simply
```
pip install pyBSDate
```

## Usage

```python
# Convert BS Date to AD
from pyBSDate import convert_BS_to_AD
adDate = convert_BS_to_AD(2072, 1, 10)
print adDate

# Convert AD Date to BS
from pyBSDate import convert_AD_to_BS
bsDate = convert_AD_to_BS(2015, 4, 23)
print bsDate
```
Date mapping data taken from 
https://github.com/bahadurbaniya/Date-Converter-Bikram-Sambat-to-English-Date


