jdcal
Julian dates from proleptic Gregorian and Julian calendars.
What it is and what it does
jdcal is a pure-Python library for converting between Julian dates and calendar dates in both the Gregorian and Julian calendar systems. It stores Julian dates as pairs of floating-point numbers to preserve precision when working with large date values, allowing the integer and fractional parts to be handled separately for maximum accuracy in astronomical and scientific calculations.
The package provides functions to convert Gregorian or Julian calendar dates to Julian dates and back, test for leap years, and access module-level constants for the Modified Julian Date epoch and J2000.0. All conversions are proleptic, meaning they work for dates outside the historical range where each calendar was actually in use. With no runtime dependencies and a small footprint, it is suitable for embedded use in scientific applications, but the package has been abandoned since 2019 and will not receive updates.
Use it for:
- Astronomical calculations that require Julian dates for precise time representation across centuries.
- Converting historical or future calendar dates to Julian dates for scientific simulations or data analysis.
- Testing leap-year logic or validating calendar conversions in applications that handle diverse date formats.
- Splitting date precision across two numbers when working with systems that require high-precision time tracking.
- Proleptic calendar conversions for dates before the Gregorian calendar reform or in non-standard historical contexts.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Converts between Julian dates and Gregorian or Julian calendar dates, storing Julian dates as pairs of floating-point numbers for maximum precision.
Yes, if you need Julian date conversion and can tolerate an abandoned package. The library is mature, has no dependencies, and works across Python 2 and 3. However, be aware that it will not receive bug fixes or updates—verify that its behavior matches your requirements before committing to it in a production system.
Install
jdcal on PyPI
pip
pip install jdcaluv
uv add jdcalpoetry
poetry add jdcalInstalling jdcal
Before you install
Installation is straightforward with no runtime dependencies. However, the package is abandoned—last release was in April 2019 and last commit in February 2022—so it will not receive updates or security patches.
License in practice
Released under BSD (permissive license), so you can use, modify, and distribute it freely with minimal restrictions.
Quickstart
pip install jdcal
from jdcal import gcal2jd, jd2gcal, is_leap
# Convert Gregorian date to Julian date
jd = gcal2jd(2000, 1, 1)
print(jd) # (2400000.5, 51544.0)
# Convert back to Gregorian
gcal = jd2gcal(2400000.5, 51544.0)
print(gcal) # (2000, 1, 1, 0.0)
# Check leap year
print(is_leap(2000)) # True
Verify before relying
- Whether the abandoned status and lack of recent maintenance pose a risk for your use case, particularly if you rely on calendar edge cases or need Python 3.8+ support.
- Whether the proleptic calendar behavior (working for dates outside the calendar's historical validity) matches your application's requirements.
Package facts
| License | BSD (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | abandoned — 2,669 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 3,804,120/month — #2,494 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: jdcal-1.4.1-py2.py3-none-any.whl
Tags
More Astronomy packages
Albumentations applies image transformations to…
permissive · top 5,000 on PyPI
convertdateConverts dates between the Gregorian calendar…
permissive · top 5,000 on PyPI
pyerfaPyERFA wraps the ERFA C library (Essential…
permissive · top 5,000 on PyPI
PyMeeusPyMeeus implements astronomical algorithms from…
copyleft · top 5,000 on PyPI
ephemPyEphem computes high-precision positions of…
permissive · top 5,000 on PyPI
numpy-quaternionAdds a quaternion dtype to NumPy, enabling…
permissive · top 5,000 on PyPI
yearfracComputes fractional year differences between…
permissive · top 15,000 on PyPI
zhdateConverts between Chinese lunar calendar dates…
copyleft · top 15,000 on PyPI
lunardateConverts between Gregorian (solar) and Chinese…
copyleft · top 5,000 on PyPI
pyCalverterConverts between different calendar systems,…
copyleft · top 15,000 on PyPI
jdatetimejdatetime provides a Jalali (Persian) calendar…
permissive · top 15,000 on PyPI
pyluachConverts between Hebrew and Gregorian calendar…
permissive · top 5,000 on PyPI
ummalquraConverts between Gregorian and Hijri calendar…
unclear · top 15,000 on PyPI
hijridateConverts dates between the Hijri (Islamic) and…
permissive · top 5,000 on PyPI
cftimeConverts between calendar dates and numeric…
permissive · top 5,000 on PyPI