Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Simple library for converting between Julian calendar dates and datetime objects

Project Description

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
Release History

Release History

This version
History Node

0.14

History Node

0.13

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
julian-0.14.zip (2.8 kB) Copy SHA256 Checksum SHA256 Source Mar 26, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting