Skip to main content

Badi Calendar Datetime API (badidatetime)

Project description

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

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-1.3.0.tar.gz (77.4 kB view details)

Uploaded Source

Built Distribution

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

badidatetime-1.3.0-py3-none-any.whl (81.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: badidatetime-1.3.0.tar.gz
  • Upload date:
  • Size: 77.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Hatch/1.17.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.17.0"},"openssl_version":"OpenSSL 3.0.13 30 Jan 2024","python":"3.14.6","system":{"name":"Linux","release":"6.8.0-124-generic"}} HTTPX2/2.5.0

File hashes

Hashes for badidatetime-1.3.0.tar.gz
Algorithm Hash digest
SHA256 c47a9a9436b322c1862201b31e3fbbd796b6c401463bdd33d45240e3461745d4
MD5 75e24bc0c07e30aac47d0b445dd39cd7
BLAKE2b-256 f9f9f07886586fee0a8e9d452d83c43056c36dc0240a9e7a0026f09e3761f71a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: badidatetime-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 81.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Hatch/1.17.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.17.0"},"openssl_version":"OpenSSL 3.0.13 30 Jan 2024","python":"3.14.6","system":{"name":"Linux","release":"6.8.0-124-generic"}} HTTPX2/2.5.0

File hashes

Hashes for badidatetime-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bb23e452ad266ec2e4e6ee7fbb47947ffbbb23b7e26a903a6a8422b072890b37
MD5 c05298851dc7b7f3d6ea3bfd756e7cd1
BLAKE2b-256 3aa6fb30ae717e155715436b33cf6113636c4d2172326160690d6d1a8d0e071c

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