From f7c49698af5958cfbab991325beb8a92141fb023 Mon Sep 17 00:00:00 2001 From: nirenjan Date: Wed, 2 Oct 2024 10:22:33 -0700 Subject: [PATCH] fix: Update stardate script to be compatible with Python 3 --- scripts/stardate | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/stardate b/scripts/stardate index c1a7c37..58cdbf6 100755 --- a/scripts/stardate +++ b/scripts/stardate @@ -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])