diff --git a/scripts/jdate b/scripts/jdate deleted file mode 100755 index 1988a07..0000000 --- a/scripts/jdate +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/env python -""" Calculate the Julian Date """ - -import time - -t = time.time() - -""" Technically, we should be adding 2440587.5, - however, since we are trying to stick to the stardate - concept, we add only 40587.5""" -jd = t / 86400.0 + 40587.5 - -print "%05.1f" % jd - diff --git a/scripts/juliandate b/scripts/juliandate deleted file mode 100755 index 6e23a9e..0000000 --- a/scripts/juliandate +++ /dev/null @@ -1,19 +0,0 @@ -#!/usr/bin/env python -""" Calculate the Julian Date """ -# http://www.cs.utsa.edu/~cs1063/projects/Spring2011/Project1/jdn-explanation.html - -import time - -t = time.gmtime() - -a = (14 - t.tm_mon) / 12 -y = t.tm_year + 4800 - a -m = t.tm_mon + 12 * a - 3 - -jdn = t.tm_mday + (153 * m + 2) / 5 + 365 * y +\ - y / 4 - y / 100 + y / 400 - 32045 - -jd = jdn + (t.tm_hour - 12) / 24.0 + t.tm_min / 1440.0 + t.tm_sec / 86400 - -print "%05.1f" % jd - diff --git a/scripts/stardate b/scripts/stardate deleted file mode 100755 index 1bb4b6c..0000000 --- a/scripts/stardate +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/env python - -import time - -print "%05.1f" % (time.time() / 31557.6) - diff --git a/scripts/stardate.pl b/scripts/stardate.pl deleted file mode 100755 index 4a992a9..0000000 --- a/scripts/stardate.pl +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/perl - -my $trek_year; -my $sd; - -($sec, $min, $hour, $mday, $mon, $year, $wday, $yday, $isdst) = - gmtime(time); - -$trek_year = ($year - 70) * 1000; - -$sd = ((($yday)*1000/365.25 + $trek_year)); - -printf "%.1f\n", $sd; -