Not actively maintained

I no longer have the time to work on this package so this is as good as abandoned.

I recommend the excellent https://github.com/dxillar/nepali-datetime package instead.

This repo and the PYPI package will still stay up but there will be no newer releases.

bikram

https://img.shields.io/pypi/v/bikram.svg https://img.shields.io/travis/poudel/bikram.svg Documentation Status

Utilities to work with Bikram/Vikram Samwat dates. Documentation: https://bikram.readthedocs.io.

Getting started

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 and datetime.timedelta within range.
  • Supports comparison with datetime.date and datetime.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.