Simple library for converting between Julian calendar dates and datetime objects
julian is a simple Python library for converting between Julian dates and Python datetime objects.
import julian import datetime mjd = 54372.78 dt = julian.from_jd(mjd, fmt='mjd') print(dt)
jd = julian.to_jd(dt + datetime.timedelta(hours=12), fmt='jd') print(jd)
julian is tested on python versions >= 3.2
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
julian-0.13.zip (2.8 kB view hashes)