Skip to main content

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.

Release files for historicaldates 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for historicaldates 1.0.1
File Size Uploaded
historicaldates-1.0.1.tar.gz 4.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for historicaldates 1.0.1
File Interpreter ABI Platform
historicaldates-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 8.9 kB

Release files / historicaldates-1.0.1.tar.gz

Download URL historicaldates-1.0.1.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
e97914d9040411ec0223a84e7770559564889d0e51025e62962e99390f05a29e
BLAKE2b-256 checksum
How to use checksums
ce1c278ad49456ab73c426d5c9aa682fc5b16e42ca39e17ec9e7cd801d2213aa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.19

Release files / historicaldates-1.0.1-py3-none-any.whl

Download URL historicaldates-1.0.1-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d4f515b7512289afc1d9797913e31b19c9581657f0d61e0b0cd162a2f82d79f5
BLAKE2b-256 checksum
How to use checksums
8e3c43946afa48c06637c856244aa4cf55bc39d8dbffaccb3bac50fe4cb4da70
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.19

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page