From 178ebe4f0ef8e0e0d2031d91f9a0d14cb331a928 Mon Sep 17 00:00:00 2001 From: nirenjan Date: Tue, 22 Jan 2013 16:58:43 -0800 Subject: [PATCH] Speed up stardate counter (1 SD = 1 JD) --- scripts/sdate | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/sdate b/scripts/sdate index 303d0ef..0ee3c69 100755 --- a/scripts/sdate +++ b/scripts/sdate @@ -8,9 +8,9 @@ t = time.time() """ Technically, we should be adding 2440587.5, however, since we are trying to stick to the stardate - concept, we add only 440587.5""" -jd = math.floor(t / 86400.0 + 440587.5) + concept, we add only 40587.5""" +jd = (t / 86400.0 + 40587.5) # Use the idea that 10 Julian days is equal to 1 stardate -print "%05.1f" % (jd / 10.0) +print "%05.1f" % jd