Skip to content

Pythonic date object, parser, converter to work with Bikram Samwat (Nepali) dates

License

Notifications You must be signed in to change notification settings

aerawatcorp/bikram

Repository files navigation

bikram

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.