Skip to main content

datetime module that operates on B.S

Project description

Nepali Datetime (Bikram Sambat B.S)

The package similar to Python core datetime package that operates on Bikram Sambat (B.S) date instead of A.D.

Installation

$ pip install nepali-datetime

Usage

The Python3 core datetime library usage.

# Get current datetime in AD format
>>> import datetime
>>> datetime.datetime.now()
# 2020-07-18 12:18:53.586455
>>> datetime.date.today()
# 2020-07-18

The equivalent nepali_datetime library usage.

# Get current datetime in BS format
>>> import nepali_datetime
>>> nepali_datetime.datetime.now()
# 2077-04-03 12:18:53.586455
>>> nepali_datetime.date.today()
# 2077-04-03

The equivalence is not limited to just getting current datetime. Its supports almost methods from Python's core datetime library supports & is almost equivalent. The ultimate goal is not make it equivalent & making these two library's interchangeable at any line of code.

Documentation

Complete documentations can be found here.

Contribution

For contribution check the guidelines in CONTRIBUTING.md.

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

nepali-datetime-1.0.1.tar.gz (14.2 kB view details)

Uploaded Source

Built Distribution

nepali_datetime-1.0.1-py3-none-any.whl (15.3 kB view details)

Uploaded Python 3

File details

Details for the file nepali-datetime-1.0.1.tar.gz.

File metadata

  • Download URL: nepali-datetime-1.0.1.tar.gz
  • Upload date:
  • Size: 14.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.5.9

File hashes

Hashes for nepali-datetime-1.0.1.tar.gz
Algorithm Hash digest
SHA256 597bbb9ad44acd9dea4c7edff893673e23350b8b4561a32db23158523eae0740
MD5 af49e7f8239379a7b2fa1b3798069632
BLAKE2b-256 e9762db4bbb4e23b11943389ae2ee6d052b5705ff2c9b4c7d3f9ece5bfac0377

See more details on using hashes here.

File details

Details for the file nepali_datetime-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: nepali_datetime-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 15.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.5.9

File hashes

Hashes for nepali_datetime-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 127e3c633a57cd8795d10ec7846807e3157db4ee6643ff2fcfcda4ab306f70cf
MD5 911367d58ef758069fcf11d5648077c1
BLAKE2b-256 12058cb0530ea8c68fb8234e10ac6268754a5fd3eba849609001295058b21785

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page