Delete obsolete scripts

master
nirenjan 2013-01-21 17:36:07 -08:00
parent 1f76e13112
commit 6560b0050d
4 changed files with 0 additions and 53 deletions

14
jdate
View File

@ -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

View File

@ -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

View File

@ -1,6 +0,0 @@
#!/usr/bin/env python
import time
print "%05.1f" % (time.time() / 31557.6)

View File

@ -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;