moved kdeaccessibility kdeaddons kdeadmin kdeartwork kdebindings kdeedu kdegames...
[kdeedu.git] / doc / kstars / julianday.docbook
blob03ae53c30776b412b4242a897719ae405e081904
1 <sect1 id="ai-julianday">
2 <sect1info>
3 <author>
4 <firstname>John</firstname>
5 <surname>Cirillo</surname>
6 </author>
7 </sect1info>
8 <title>Julian Day</title>
9 <indexterm><primary>Julian Day</primary>
10 </indexterm>
11 <para>
12 Julian Days are a way of reckoning the current date by a simple count of
13 the number of days that have passed since some remote, arbitrary date.  This
14 number of days is called the <firstterm>Julian Day</firstterm>,
15 abbreviated as <abbrev>JD</abbrev>.  The starting point, <abbrev>JD=0</abbrev>,
16 is January 1, 4713 BC (or -4712 January 1, since there was no year '0').  Julian
17 Days are very useful because they make it easy to determine the number of days
18 between two events by simply subtracting their Julian Day numbers.
19 Such a calculation is difficult for the standard (Gregorian) calendar, because
20 days are grouped into months, which contain a variable number of days, and
21 there is the added complication of <link linkend="ai-leapyear">Leap
22 Years</link>.
23 </para><para>
24 Converting from the standard (Gregorian) calendar to Julian Days and vice versa
25 is best left to a special program written to do this, such as the &kstars;
26 <link linkend="tool-calculator">Astrocalculator</link>.  However, for those
27 interested, here is a simple example of a Gregorian to Julian day converter:
28 </para><para>
29 <abbrev>JD</abbrev> = <abbrev>D</abbrev> - 32075 + 1461*( <abbrev>Y</abbrev> +
30 4800 + ( <abbrev>M</abbrev> - 14 ) / 12 ) / 4 + 367*( <abbrev>M</abbrev> - 2 -
31 ( <abbrev>M</abbrev> - 14 ) / 12 * 12 ) / 12 - 3*( ( <abbrev>Y</abbrev> + 4900 +
32 ( <abbrev>M</abbrev> - 14 ) / 12 ) / 100 ) / 4
33 </para><para>
34 where <abbrev>D</abbrev> is the day (1-31), <abbrev>M</abbrev> is the Month
35 (1-12), and <abbrev>Y</abbrev> is the year (1801-2099).  Note that this formula
36 only works for dates between 1801 and 2099.  More remote dates require a more
37 complicated transformation.
38 </para><para>
39 An example Julian Day is: <abbrev>JD</abbrev> 2440588, which corresponds to
40 1 Jan, 1970.
41 </para><para>
42 Julian Days can also be used to tell time; the time of day is expressed as a
43 fraction of a full day, with 12:00 noon (not midnight) as the zero point.  So,
44 3:00 pm on 1 Jan 1970 is <abbrev>JD</abbrev> 2440588.125 (since 3:00 pm is 3
45 hours since noon, and 3/24 = 0.125 day).  Note that the Julian Day is always
46 determined from <link linkend="ai-utime">Universal Time</link>, not Local Time.
47 </para><para>
48 Astronomers use certain Julian Day values as important reference points, called
49 <firstterm>Epochs</firstterm>.  One widely-used epoch is called J2000; it is the
50 Julian Day for 1 Jan, 2000 at 12:00 noon = <abbrev>JD</abbrev> 2451545.0.
51 </para><para>
52 Much more information on Julian Days is available on the internet.  A good
53 starting point is the <ulink
54 url="http://aa.usno.navy.mil/faq/docs/JD_Formula.html">U.S. Naval
55 Observatory</ulink>.  If that site is not available when you read this, try
56 searching for <quote>Julian Day</quote> with your favorite search engine.
57 </para>
58 </sect1>