Skip to main content

datetime module that operates on bikram sambat & nepal time

Project description

Nepali Datetime (Bikram Sambat B.S & Nepal Time NPT)

The package similar to Python's core datetime package that operates on Bikram Sambat (B.S) date & Nepal Time +05:45.

Installation

$ pip install nepali-datetime

Usage

The Python3 core datetime library usage VS nepali_datetime usage.

# importing the module
>>> import datetime
>>> import nepali_datetime

# getting today's date
>>> datetime.date.today()
>>> nepali_datetime.date.today()

# getting now datetime
>>> datetime.datetime.now()
>>> nepali_datetime.datetime.now()

# creating date object
>>> datetime.date(2020, 9, 4)
>>> nepali_datetime.date(2077, 5, 19)

# creating datetime object
>>> datetime.datetime(2020, 9, 4, 8, 26, 10, 123456)
>>> nepali_datetime.datetime(2077, 5, 19, 8, 26, 10, 123456)

The equivalence is not limited to just getting current datetime. Its supports most of the methods from Python's core datetime library.

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.2.tar.gz (14.4 kB view details)

Uploaded Source

Built Distribution

nepali_datetime-1.0.2-py3-none-any.whl (15.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nepali-datetime-1.0.2.tar.gz
  • Upload date:
  • Size: 14.4 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.2.tar.gz
Algorithm Hash digest
SHA256 c20a326ee0c8cfd767b9981a82ef0c49755f17d5dad83de4215a5a6732cdfb31
MD5 3b6dd5e400317b98dc293fc6fa60ab6a
BLAKE2b-256 875593371a081e5c22bb630039c31e37cc3c4dcd7df79f0a271e1ad275bc7b84

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nepali_datetime-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 15.4 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ad5c7c915ea6fd6eaceefda5733995595aaf372bc28b1e5928dde6e31b2e8554
MD5 627db4e90375c7fff6af4a62ce9156d6
BLAKE2b-256 7b5059011cd5ea8fb7cac323e107e421e02bfa9fe5ba031e9467c9b151c94cb1

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