Skip to content

Instantly share code, notes, and snippets.

@dokeeffe
Created October 10, 2017 11:00
Show Gist options
  • Save dokeeffe/aece0737b61014032ac3144683a8315b to your computer and use it in GitHub Desktop.
Save dokeeffe/aece0737b61014032ac3144683a8315b to your computer and use it in GitHub Desktop.
# Convert a date time string to julian date using astropy Time
from astropy.time import Time
t = Time('2017-07-02 11:11:11', scale='utc')
print(t.jd)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment