Skip to main content

Badi Calendar Datetime API (badidatetime)

Project description

License PyPi Version PyPI Wheel Build Status Coverage

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 an approximation formula to guess 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 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

badidatetime-0.1.0.tar.gz (118.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

badidatetime-0.1.0-py3-none-any.whl (126.9 kB view details)

Uploaded Python 3

File details

Details for the file badidatetime-0.1.0.tar.gz.

File metadata

  • Download URL: badidatetime-0.1.0.tar.gz
  • Upload date:
  • Size: 118.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.0

File hashes

Hashes for badidatetime-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b48d0144c9b642ff403b935ebe9c21cdbfdc39da7ecfcc619c6c96e612ada144
MD5 ee8f665f3b4ddcdca43b275e81df6051
BLAKE2b-256 33d6e96f09a53a7c147ada32feb7fe93eccb967d6b15dea1c3a379ca2b8c1453

See more details on using hashes here.

File details

Details for the file badidatetime-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: badidatetime-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 126.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.0

File hashes

Hashes for badidatetime-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f17bd0a54bf638ffeb763192e08d233aa0f8501a1bf1783fc8416b2b1afa25dd
MD5 aec8d038ba735fdef6f3b03cf755a168
BLAKE2b-256 2708a096b4e186178aa2bd06e5deefdbbe4036c8ca1c0d78605decf61c411771

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page