SkillAgentSearch skills...

Julian

A simple Python library for converting between Julian dates and datetime objects.

Install / Use

/learn @dannyzed/Julian
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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

Related Skills

View on GitHub
GitHub Stars9
CategoryDevelopment
Updated3y ago
Forks5

Languages

Python

Security Score

70/100

Audited on Oct 13, 2022

No findings