Skip to main content

Python library for handling BCE and CE dates.

Project description

python-historical-dates

Python library for handling historical dates, including support for BCE dates. This library simplifies working with ancient and historical calendars without the complexities of modern datetime modules.

Features

  • Support for both BCE and CE dates.
  • Simple and intuitive API for creating and manipulating historical dates.
  • Functionality for comparing dates and calculating differences across eras.

Installation

Install python-historical-dates via pip:

pip install historicaldates

Quick Start

Here's how you can use python-historical-dates to create and manipulate historical dates:

from historicaldates import HistoricalDate

# Create a historical date for January 1, 500 BCE
date_bce = HistoricalDate(-500, 1, 1)

# Create a historical date for December 31, 500 CE
date_ce = HistoricalDate(500, 12, 31)

# Calculate the number of days between two dates
days_between = date_ce - date_bce
print(f"Days between: {days_between}")

How to Contribute

I welcome contributions from the community! Here are some ways you can contribute:

  • Submit bugs and feature requests.
  • Review the source code and improve documentation.
  • Submit pull requests with bug fixes or new features. Before contributing, please read the CONTRIBUTING.md file for details on our code of conduct, and the process for submitting pull requests to us.

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

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

historicaldates-1.0.1.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

historicaldates-1.0.1-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file historicaldates-1.0.1.tar.gz.

File metadata

  • Download URL: historicaldates-1.0.1.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.19

File hashes

Hashes for historicaldates-1.0.1.tar.gz
Algorithm Hash digest
SHA256 e97914d9040411ec0223a84e7770559564889d0e51025e62962e99390f05a29e
MD5 10428d124c04392c47287ed93e7c79d2
BLAKE2b-256 ce1c278ad49456ab73c426d5c9aa682fc5b16e42ca39e17ec9e7cd801d2213aa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for historicaldates-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d4f515b7512289afc1d9797913e31b19c9581657f0d61e0b0cd162a2f82d79f5
MD5 c21c6e6c269338fd8ee7074800316600
BLAKE2b-256 8e3c43946afa48c06637c856244aa4cf55bc39d8dbffaccb3bac50fe4cb4da70

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