From: Robert Kaiser Date: Mon, 28 Jul 2014 01:41:11 +0000 (-0700) Subject: add comments for stardate and revise it by 30min to be more accurate X-Git-Tag: production~4^2~1 X-Git-Url: https://git-public.kairo.at/?a=commitdiff_plain;h=a4a791a5b5715d83bcca9c3e757cc7c4e20d227e;hp=--cc;p=tricorder.git add comments for stardate and revise it by 30min to be more accurate --- a4a791a5b5715d83bcca9c3e757cc7c4e20d227e diff --git a/js/tricorder.js b/js/tricorder.js index ff53ccb..2574b01 100644 --- a/js/tricorder.js +++ b/js/tricorder.js @@ -32,13 +32,20 @@ window.onload = function() { } function updateStardate() { + // Stardate rules foggy at best. See http://en.wikipedia.org/wiki/Stardate + // and the Memory Alpha article linked there for more details. + // We roughly lean on TNG scale by splitting an Earth year into exactly 1000 + // units, but we put the 0 point at the TV premiere of The Original Series. if (!gStardate) gStardate = document.getElementById("stardate"); var curDate = new Date(); if (!gSDBase) - gSDBase = new Date("September 8, 1966 20:00:00 EST"); + // Star Trek premiered on Thursday, September 8, 1966, at 7:30PM or 8:30PM + // depending on time zone in the United States. + // See http://www.startrek.com/article/star-trek-and-newspapers-part-2 + gSDBase = new Date("September 8, 1966 19:30:00 EST"); var sdateval = (curDate - gSDBase) / (86400 * 365.2425); gStardate.textContent = sdateval.toFixed(1);