skillfed

jdcal

Julian dates from proleptic Gregorian and Julian calendars.

jdcal v1.4.1 3.8M downloads/30d#2,494 on PyPI39
Permissive license BSD Abandoned released

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 jdcal

uv

uv add jdcal

poetry

poetry add jdcal

Installing 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

Development Status :: 6 - MatureIntended Audience :: Science/ResearchLicense :: OSI Approved :: BSD LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 2Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Scientific/Engineering :: Astronomy

Tags

julian date conversiongregorian to julian datecalendar date conversionastronomical date calculationsmodified julian dateleap year checkerproleptic calendar conversion
astronomydate-conversioncalendar

More Astronomy packages