fix: Update stardate script to be compatible with Python 3

master
nirenjan 2024-10-02 10:22:33 -07:00
parent acf0c8a78c
commit f7c49698af
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
""" Calculate the Julian Date """
import time
@ -12,5 +12,5 @@ t = time.time()
jd = (t / 86400.0 + 40587.5)
# Use the idea that 1 Julian day is equal to 1 stardate
print ("%05.9f" % jd)[:-7]
print(("%05.9f" % jd)[:-7])