<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE page SYSTEM "gen/gandraxa.dtd">
<?xml-stylesheet type="text/xsl" href="gen/gandraxa.xsl"?>
<!--
	To see this page properly, install a browser capable of
	interpreting XML/XSL, for example a recent version of:
	- Mozilla Firefox, see http://www.mozilla.com/
	- Google Chrome, see www.google.com/
	- Internet Explorer, see http://www.microsoft.com/
-->
<page>
	<head>
		<title>Decimal Time</title>
		<url>http://www.gandraxa.com/decimal_time.xml</url>
		<menuimg>
			<img>
				<url>img/time_menu.png</url>
				<alt>Clock</alt>
				<magnify>img/time.png</magnify>
			</img>
		</menuimg>
		
		<context>
			<path>
				<home>
					<link loc="int">
						<url>home.xml</url>
						<text>Home</text>
					</link>
				</home>
				<dir>
					<link loc="int">
						<url>articles.xml</url>
						<text>Articles</text>
					</link>
				</dir>
				<doc>Decimal Time</doc>
			</path>
		</context>
		
		<author>
			<mail>
				<recipient>hg</recipient>
				<server>gandraxa.com</server>
				<name>Herbert Glarner</name>
			</mail>
		</author>
		
		<publ>
			<event>
				<eventdate><y>2011</y><m>Jun</m><d>29</d></eventdate>
				<eventtext>First published</eventtext>
			</event>
		</publ>

		<furtherreading>
			<readitem>
				<link loc="wiki">
					<url>http://en.wikipedia.org/wiki/Decimal_time</url>
					<text>Decimal time</text>
				</link> on Wikipedia
			</readitem>
		</furtherreading>
		
	</head>
	
	<abstract>
		<p><ptitle>Abstract</ptitle>
			Converting our regular time into decimal time.</p>
	</abstract>

	<part>
		<heading id="A">Discussion</heading>
		<body>
			<p>Providing a decimal time is a straightforward issue.
				First we observe, that a day consists of 24 <ent>times</ent> 60 <ent>times</ent> 60 =
				86,400 seconds.
				Then we need to find a smallest time increment which is close enough to the 
				second familiar to us, and which still fits into a decimal system.
				A sensible choice is 0.864 seconds, representing 1/100,000 of a day.</p>
			<p>By defining, that a day begins at midnight also for the decimal time,
				we have time 0 at midnight, time 1 a mere 0.864 seconds later, time 25,000
				at 6:00 am, time 50,000 at noon, time 75,000 at 6:00 pm, and time 99,999
				a tiny 0.864 seconds before midnight.
			</p>
			<multiimg orientation="horizontal" float="right" width="270">
				<img id="hora">
					<url>img/flipclock/0.png</url>
					<alt>A changing digit in flip clock look</alt>
					<caption><em>Hora</em><br/>2.4 h</caption>
				</img>
				<img id="prima">
					<url>img/flipclock/0.png</url>
					<alt>A changing digit in flip clock look</alt>
					<caption><em>Prima</em><br/>14.4 min</caption>
				</img>
				<img id="secunda">
					<url>img/flipclock/0.png</url>
					<alt>A changing digit in flip clock look</alt>
					<caption><em>Secunda</em><br/>1.44 min</caption>
				</img>
				<img id="tertia">
					<url>img/flipclock/0.png</url>
					<alt>A changing digit in flip clock look</alt>
					<caption><em>Tertia</em><br/>8.64 s</caption>
				</img>
				<img id="quarta">
					<url>img/flipclock/0.png</url>
					<alt>A changing digit in flip clock look</alt>
					<caption><em>Quarta</em><br/>0.864 s</caption>
				</img>
				<caption>Note, that the accuracy of this digital clock is bound to your
					computer time: it is a direct reflection of it. If your clock is wrong,
					than this one is as well.</caption>
			</multiimg>
			<p>A little bit of Javascript does what we want. For the representation of
				the decimal time ordinary digits would do, of course, but I was explicitely in
				search for some flip clock digits. Just when I was about to give up,
				I came across the page of <link loc="ext">
					<url>http://web.media.mit.edu/~guy/blog/entry.php?14070701</url>
					<text>Guy Hoffman</text>
				</link>, in which he makes his designed digits public. I resized them to suit
				my needs, and to the right you can see the result. Of course,
				this derivative work is public as well.</p>
			<p>All what's left to do is to provide some fancy names so that we can avoid
				speaking of 5 digit numbers most of the time.</p>
			<p>So let's look at the meaning of &quot;minute&quot; and &quot;second&quot;
				for an instant. The term &quot;minute&quot; comes from (lat.) 
				<em>pars <redtext>minuta</redtext> prima</em>, 
				i.e. the first subdivision (namely of an hour,
				into 60 parts). Likewise, the term &quot;second&quot; comes from (lat.) 
				<em>pars minuta <redtext>secunda</redtext></em>, 
				i.e. the second subdivision (namely the subdivision 
				of the first subdivision, hence of a minute,
				again into 60 parts).</p>
			<p>If we go with the system, we'd name the leftmost digit <em>hora</em> (lat. for hour), 
				followed by <em>prima</em> (rather than the inconsistent <em>minuta</em>) and
				<em>secunda</em> 
				(both for 10 parts rather than 60).
				Then we may come up easily with two further names for the missing digits,
				namely <em>pars minuta tertia</em> and <em>pars minuta quarta</em>. <ent>dash</ent> 
				Of couse, nothing stops you from calling the second and third digit a 
				&quot;minute&quot; (of which 100 make an hour) and the rightmost two digits
				&quot;second&quot; (of which 100 make a minute). This would also have the
				advantage of being easily represented by clocks with 3 hands, not much
				different than those in use today.
			</p>
			<p>As a side note, the first 3 digits of decimal time correspond to the number of 
				<em>.beats</em> in the
				<link loc="wiki">
					<text>Swatch Internet Time</text>
					<url>http://en.wikipedia.org/wiki/Swatch_Internet_Time</url>
				</link>. The two last digits are unofficially named <em>centibeats</em>.
			</p>
<javascript>
<![CDATA[
function start()
{
	self.setTimeout("start()", 216)

	var currentTime = new Date();
	var currentHours = currentTime.getHours();
	var currentMinutes = currentTime.getMinutes();
	var currentSeconds = currentTime.getSeconds();
	var currentMilli = currentTime.getMilliseconds();
	currentTime = Math.floor((currentHours * 3600 + currentMinutes * 60 + currentSeconds + currentMilli / 1000) / 0.864);

	var currentHora = Math.floor(currentTime / 10000);
	currentTime = currentTime - currentHora * 10000;
	document.getElementById("hora").src = "/img/flipclock/" + currentHora + ".png";

	var currentPrima = Math.floor(currentTime / 1000);
	currentTime = currentTime - currentPrima * 1000;
	document.getElementById("prima").src = "/img/flipclock/" + currentPrima + ".png";

	var currentSecunda = Math.floor(currentTime / 100);
	currentTime = currentTime - currentSecunda * 100;
	document.getElementById("secunda").src = "/img/flipclock/" + currentSecunda + ".png";

	var currentTertia = Math.floor(currentTime / 10);
	currentTime = currentTime - currentTertia * 10;
	document.getElementById("tertia").src = "/img/flipclock/" + currentTertia + ".png";

	document.getElementById("quarta").src = "/img/flipclock/" + currentTime + ".png";
}
]]>
</javascript>
		</body>
	</part>
</page>
