Skip to main content

Simple library for converting between Julian calendar dates and datetime objects

Project description

Build Status

julian

julian is a simple Python library for converting between Julian dates and Python datetime objects.

Examples

import julian
import datetime

mjd = 54372.78
dt = julian.from_jd(mjd, fmt='mjd')
print(dt)
2007-09-29 18:43:11.999982
jd = julian.to_jd(dt + datetime.timedelta(hours=12), fmt='jd')
print(jd)
2454373.78

Installation

julian is tested on python versions >= 3.2

pip install julian

Project details


Release history Release notifications

This version
History Node

0.14

History Node

0.13

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
julian-0.14.zip (2.8 kB) Copy SHA256 hash SHA256 Source None Mar 26, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page