Skip to main content

Introduction to the Badí’ Calendar API

License PyPi Version PY Versions Build Status Coverage PyPI Downloads

The objective of this API (Application Programming Interface) is to implement a library that provides date and time functionality similar to that of the standard Python datetime package, however for the Badí’ Calendar. This API is much more extensive than the standard package as it includes all the astronomical calculations needed to find the Vernal Equinox, sunset, and many other astronomical events that are needed to support the Badí’ Calendar.

The Badí’ Calendar is an Astronomical Self-correcting Solar Calendar. Since astronomical calculations are needed it is obviously an astronomical calendar. It is self-correcting because the leap years are determined by calculating the number of days from the sunset immediately preceding the Vernal Equinox to the sunset immediately preceding the next Vernal Equinox. Counting the days it will either be 365 on ordinary years or 366 on leap years. The Vernal Equinox is when the sun is directly above the equator and the length of the day and night are nearly equal thus making it a solar calendar.

The Gregorian Calendar is a solar calendar. It uses a guesstimating formula to approximate when the leap years will be. This formula I call a 4/100/400 formula. In other words a leap year is every 4 years unless the year is divisible by 100 then it is not a leap year unless it is also dividable by 400 then it is a leap year. This means that the Gregorian leap years are on a 400 year cycle and can be more-or-less predicted by the above formula thus making leap years fairly regular. The Badí’ leap years are irregular and cannot be guess with a simple formula as is done with Gregorian Calendar, astronomical calculation are needed.

Attributions

Much of the astronomical code is derived from Astronomical Algorithms by Jean Meeus and there are some code snippets from Calendrical Calculations – The Ultimate Edition 4th Edition by Edward M. Reingold and Nachum Dershowitz.

Feel free to contact me at: carl dot nobile at gmail dot com

Complete Documentation can be found on Read the Docs at: A Badí’ Date and Time API

Metadata

Release files for badidatetime 1.5.0

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

Source distribution (sdist)

Source distribution for badidatetime 1.5.0
File Size Uploaded
badidatetime-1.5.0.tar.gz 77.7 kB Details

Built distribution (wheel)

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

Total release size: 159.6 kB

Release files / badidatetime-1.5.0.tar.gz

Download URL badidatetime-1.5.0.tar.gz
Size 77.7 kB
Tags Source
SHA-256 checksum
How to use checksums
713f6d8eddf30c6ecdc5c75fa998a647df343171d97d67f3d4c5ee30b198dac4
BLAKE2b-256 checksum
How to use checksums
18258d0172c213c2688eed9a1d9842d9c076c08267a868bcf2041c0698e1fe71
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Hatch/1.18.0 {"ci":null,"cpu":"x86_64","distro":{"id":"noble","libc":{"lib":"glibc","version":"2.39"},"name":"Ubuntu","version":"24.04"},"implementation":{"name":"CPython","version":"3.14.6"},"installer":{"name":"hatch","version":"1.18.0"},"openssl_version":"OpenSSL 3.0.13 30 Jan 2024","python":"3.14.6","system":{"name":"Linux","release":"6.8.0-139-generic"}} HTTPX2/2.5.0

Release files / badidatetime-1.5.0-py3-none-any.whl

Download URL badidatetime-1.5.0-py3-none-any.whl
Size 81.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2fe0ad4226586ec8a92f2964aa76dfb883d9fd57927f3977b594193ca2a73f19
BLAKE2b-256 checksum
How to use checksums
01b1716e9238d0d77c35f588c45db0109f94ae0460c0f29d2270171ae6f884c8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Hatch/1.18.0 {"ci":null,"cpu":"x86_64","distro":{"id":"noble","libc":{"lib":"glibc","version":"2.39"},"name":"Ubuntu","version":"24.04"},"implementation":{"name":"CPython","version":"3.14.6"},"installer":{"name":"hatch","version":"1.18.0"},"openssl_version":"OpenSSL 3.0.13 30 Jan 2024","python":"3.14.6","system":{"name":"Linux","release":"6.8.0-139-generic"}} HTTPX2/2.5.0

Release history Release notifications | RSS feed

This release

1.5.0 This release

2 release files

1.4.0

2 release files

1.3.0

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.5.0

2 release files

0.4.3

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

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