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


Download files

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

Source Distribution

julian-0.14.zip (2.8 kB view details)

Uploaded Source

File details

Details for the file julian-0.14.zip.

File metadata

  • Download URL: julian-0.14.zip
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for julian-0.14.zip
Algorithm Hash digest
SHA256 deee4090faad584c1875d97e72808198f802a9d2dc38a70fe2a8f790ea5dbd0a
MD5 1dc2e5f3ff2ffc9c727ca48ff0a21afc
BLAKE2b-256 e4403454dc78fea47fb634eb82f28473bab7ca376f4c68cd6e889edf67d10b51

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page