Utilities to work with Bikram/Vikram Samwat dates.
Project description
bikram
Utilities to work with Bikram/Vikram Samwat dates. Documentation: https://bikram.readthedocs.io.
Getting started
Install the
bikram
package: https://bikram.readthedocs.io/installation.html.Read the usage guide: https://bikram.readthedocs.io/usage.html.
Read the module reference guide: https://bikram.readthedocs.io/bikram.html.
Features
Convert Bikram Samwat dates to AD and vice versa in a few line of codes. Intended to be useful for Nepali software developers.
Well tested and readable source code.
Date operations, i.e. addition/subtraction, supported with
datetime.date
anddatetime.timedelta
within range.Supports comparison with
datetime.date
anddatetime.timedelta
objects.Supports string formatting of samwat dates.
Caveats
Is not very helpful if the date falls outside the map of BS years to days in month.
Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
History
2.1.0 to 2.1.3 (2024-06-20)
Few changes have been made to make the date map accurate as reported by several contributors.
2062 BS Date changes and confirmed as per the Nepal RajPatra
2081 BS Date changes and confirmed as per the calendar published in 2081
out of bound checks as suggested by Dipendra Nath (dipee), FIRST_AD_YEAR, LAST_AD_YEAR constanst introduced.
2.1.3 - Bump to push the change log
1.0.0 (2018-03-15)
Added usage guide and module docs.
Added
pipenv
support.Removed
tox
.Removed support for python versions older than 3.6.
0.1.2 (2016-11-13)
Minor test fixes.
0.1.0 (2016-11-13)
First release on PyPI.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file bikram-2.1.3.tar.gz
.
File metadata
- Download URL: bikram-2.1.3.tar.gz
- Upload date:
- Size: 22.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8dd78e76e8aa4ad2a28335661201d0b95875c9d383765054455d2eb70a9c90af |
|
MD5 | d9838c747b3b6d7a9a5574e0e7b625e9 |
|
BLAKE2b-256 | 3a43f3d3040ddc632876836ddae447ff5a4ebeb9646322623522f49b282ec517 |