Skip to main content

Julian Date functionality in python

Project description

JulianPy

JulianPy is a rich, diverse, and easy to use python tool for Julian Dates. It offers datetime to Julian Dates, Julian Dates to datetime, and much more!

Provided Tools:

  • CJDN(date=datetime.datetime.now()) Returns the CJDN of date
  • current_julian_date() Returns the current julian date
  • tomorrow_julian_date() Returns the julian date tomorrow
  • future_julian_date(hoursadd = 0, minutesadd = 0, secondsadd =0) Returns the julian date of a time given hours, minutes, and seconds to add to the current time.
  • julian_date(date = datetime.datetime.now()) Returns the julian date of a specified date. Defaults to today's julian date
  • epoch_days(date=datetime.datetime.now()) Returns the amount of days since the J2000 epoch.
  • day_percent(date=datetime.datetime.now()) Returns the decimal part of the Julian date of the time specified. Defaults to today.
  • islamic_date(CJDNtime=None, date=datetime.datetime.now()) Returns the islamic year, month, and day as a tuple given a specified date or a CJDN
  • babylonian_date(CJDNtime = None,date=datetime.datetime.now()) Returns the babylonian year, month, and day as a tuple given a specified date or a CJDN
  • from_julian(j) Returns a datetime.datetime object from a julian date j specified.

Help

Feel free to use the python help() method on any of the above functions to get a short simple instruction message on how to use it and what it will return.

Sources

To create this library, I have collected and used information detailed in the wondrous Astronomy Answers articles. Any questions can be directed to the author's page in the website.

Changelog

  • Tuesday, June 20, 2023: Initial Commit

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

JulianPy-1.0.1.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

JulianPy-1.0.1-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file JulianPy-1.0.1.tar.gz.

File metadata

  • Download URL: JulianPy-1.0.1.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for JulianPy-1.0.1.tar.gz
Algorithm Hash digest
SHA256 56235d784f9aac383150ca7903bb995794d18daea5203fad751794219cf43315
MD5 56c646f5a7d71a6d69ec83b2010f4a98
BLAKE2b-256 b0a6aab7f48ab334728d3f9d475d926f3280bf357c19c8e67c71986c0d0b0ca9

See more details on using hashes here.

File details

Details for the file JulianPy-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: JulianPy-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for JulianPy-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 45c5a7e98b30d4e14722f75915c29399a6e7c55d8ad921e6e8754ccf8874ac0e
MD5 39a9ffab78c826bcf7f76b0538896388
BLAKE2b-256 2a94504ade78134c06d9ec064db275c56a8e43c205c3ed4a9c9d497e9d8fbfaa

See more details on using hashes here.

Supported by

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