Badi Calendar Datetime API (badidatetime)
Project description
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 making it a solar calendar.
The Badí’ leap years are irregular and cannot be guess with a simple formula as is done with Gregorian Calendar. Quite in contrast the Gregorian Calendar is only 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.
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file badidatetime-0.2.0.tar.gz.
File metadata
- Download URL: badidatetime-0.2.0.tar.gz
- Upload date:
- Size: 142.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.28.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5f7110b4f7806220217247e33eaf9febc5b04789d5662c26210e23c9008aaa54
|
|
| MD5 |
0a538233c8ece0a65bcd929f57941438
|
|
| BLAKE2b-256 |
8c8221e2de1e0d0486229748d111a1daad4388bfc511ac7b41412bfd6fb056f7
|
File details
Details for the file badidatetime-0.2.0-py3-none-any.whl.
File metadata
- Download URL: badidatetime-0.2.0-py3-none-any.whl
- Upload date:
- Size: 153.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.28.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8f3a0f7ed29e40ade6f63a8bd5839f2243a955d93ce9b69bf1fec163a6780a0a
|
|
| MD5 |
fe1231e7a9e0219d961cf1cd33a7db9b
|
|
| BLAKE2b-256 |
6b4c252c3764453d9d9be50ef65fc3ccf5997e33c70fd60e1ed908125f34261e
|