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 datecurrent_julian_date()
Returns the current julian datetomorrow_julian_date()
Returns the julian date tomorrowfuture_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 dateepoch_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 CJDNbabylonian_date(CJDNtime = None,date=datetime.datetime.now())
Returns the babylonian year, month, and day as a tuple given a specified date or a CJDNfrom_julian(j)
Returns a datetime.datetime object from a julian datej
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
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
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56235d784f9aac383150ca7903bb995794d18daea5203fad751794219cf43315 |
|
MD5 | 56c646f5a7d71a6d69ec83b2010f4a98 |
|
BLAKE2b-256 | b0a6aab7f48ab334728d3f9d475d926f3280bf357c19c8e67c71986c0d0b0ca9 |
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45c5a7e98b30d4e14722f75915c29399a6e7c55d8ad921e6e8754ccf8874ac0e |
|
MD5 | 39a9ffab78c826bcf7f76b0538896388 |
|
BLAKE2b-256 | 2a94504ade78134c06d9ec064db275c56a8e43c205c3ed4a9c9d497e9d8fbfaa |