Home » CEEFAX disks » telesoftware1.adl » CeeFax/JULIAN

CeeFax/JULIAN

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » CEEFAX disks » telesoftware1.adl
Filename: CeeFax/JULIAN
Read OK:
File size: 3001 bytes
Load address: 0000
Exec address: 0000
File contents
     The following article is reproduced with permission from
the May 1984 issue of Sky & Telescope magazine, and remains the
copyright of the Sky Publishing Corporation.

The "Sky & Telescope" magazine (ISSN 0037-6604) is published
monthly by:

                  Sky Publishing Corporation,
                  49, Bay State Road,
                  Cambridge,
                  Mass.  02238-1290
                  U.S.A.

                         -----oOo-----




                    Astronomical  Computing

                 Conducted by Roger W. Sinnott


                  Taming Our Chaotic Calendar



     A routine for calendar conversion lies at the heart of many
astronomical programs.  Often we want a computer to calculate
something for a particular date and time, or to tell us the day
and month when an event will occur (an eclipse or occultation,
perhaps).  Digital watches often fail at date conversion, and
last February 29th quite a few of them around the world probably
indicated March 1st.  To make our computer routines as universal
as possible, let's lay down certain firm expectations for them.

     First of all, the machine should "resolve" intervals as
small as 1 second of time (that is, about 0.000001 day).  It
takes only a little effort to build this accuracy into our
calendar conversion routines so they won't need later revision
for special programs.

     Second, let's avoid simple-looking procedures that only
work between certain years (for example, A.D. 1901 to 2099).
Sooner or later, we'll probably attempt a calculation outside
this interval, little suspecting that the computer will
misinterpret a date we've entered, usually by some whole number
of days!

     To express an instant internally in the computer, we'll use
Julian day numbers and fractions, as first applied to
astronomical observations by John Herschel.  The starting
instant of this system (that is, day 0.0) corresponds to noon,
Greenwich Mean Time, on January 1, 4713 B.C. - sufficiently far
back in time that we should never have to worry about negative
day numbers (and won't).  At 0 hours Universal Time on any day,
the decimal part of the Julian date is .5 exactly.

     What about the changeover from the Julian calendar to the
Gregorian?  The Julian calendar (which has nothing to do with
Julian Day numbers) had simpler leap-year rules and was in wide
civil use before A.D. 1582.  The switch to the Gregorian was
delayed until 1752 in England and the American colonies, and as
late as 1873 in Japan and 1927 in Turkey.  A special flag in a
program can ensure the computer is oriented to the proper
calendar.

     Finally, it's important to distinguish A.D. and B.C. years
somehow.  The standard way to do this regards A.D. years as
positive whole numbers; 1 B.C. is called the year 0, 2 B.C. is
-1, 3 B.C. is -2, and so on.  This helps keep leap years
straight.  Julius Caesar introduced his calendar reform in the
year 45 B.C., which becomes -44 on our scheme.  And since that
was in fact leap year, the modern divide-by-four rule applies to
negative as well as positive years.  (Readers are warned that
some recent books and articles have used the notation 1 B.C. =
-1, and 2 B.C. = -2, a very confusing symbolism.)

     The Julian calendar did not really come into consistent
civil use until after A.D. 8.  But chronologers customarily
extrapolate it backwards and call it the Julian proleptic
calendar to distinguish it from the various civil calendars that
may have been in use here and there prior to A.D. 8.

     Perhaps the most concise algorithm ever devised for
calculating the Julian day number from a Gregorian calendar date
is pictured below.  It is a line of Fortran and fits on a single
80-column punch card.  The result is an integer, JD,
corresponding to the Julian Day number that begins at Greenwich
Mean noon of year Y, month M, day D (all integers).

     However, this Fortran statement makes use of special rules
that don't work in most versions of Basic.  The absence of
explicit decimal points forces execution by integer arithmetic;
division by an integer leads to an integer quotient, and the
remainder is discarded.  (For example, 5/2 = 2, and -10/6 = -1.)
The natural approach is to rewrite the lines, using the INT
function of Basic.  But all microcomputer Basics evaluate
INT(5/2) as 2, while INT(-10/6) becomes -2 instead of -1.

     Therefore, we have taken special care in designing Listing
1, a program based on the single line of Fortran but with added
features.  It will work with either the Gregorian or Julian
calendars, and with either negative or positive years.
Moreover, the program should run correctly on any microcomputer
that works to at least seven digit accuracy.


JD=367*Y-7*(Y+(M+9)/12)/4-3*((Y+(M-9)/7)/100+1)/4+275*M/9+D+1721029

This remarkable one-line Fortran statement converts a Gregorian
calendar date into a Julian Day number.  It appeared in Astrophysical
Journal Supplement Series, 41, 1979, page 392, after being devised in
1968 by H.F.Fliegel and T.C.Van Flandern and later "compacted" by
P.M.Muller and R.N.Wimberly.  It is designed for A.D. years only and
requires some changes before being used in a Basic program (see text).
     Initially we input Y, M, and D, and set G = 1 for the
Gregorian calendar or G = 0 for the Julian one.  The day D can
be entered to five decimal places or more.  Then the program
determines the integer part J and fractional part F of the
Julian date.  It is very important not to add J and F together;
they must be kept as separate integer and fractional parts
throughout a working program so as not to lose accuracy, unless
a high precision Basic is used.


Listing 1

800 REM   CALENDAR --> JD
805 REM
810 INPUT "Y,M,D ";Y,M,D
815 INPUT "JC (0) OR GC (1) ";G
820 D1=INT(D): F=D-D1-0.5
825 J=-INT(7*(INT((M+9)/12)+Y)/4)
830 IF G=0 THEN 850
835 S=SGN(M-9): A=ABS(M-9)
840 J1=INT(Y+S*INT(A/7))
845 J1=-INT((INT(J1/100)+1)*3/4)
850 J=J+INT(275*M/9)+D1+G*J1
855 J=J+1721027+2*G+367*Y
860 IF F>=0 THEN 870
865 F=F+1: J=J-1
870 PRINT "J.D.: ";J;F
875 END


Listing 2

900 REM   JD ---> CALENDAR
905 REM
910 INPUT "J,F ";J,F
915 INPUT "JC (0) OR GC (1) ";G
920 F=F+0.5
925 IF F<1 THEN 935
930 F=F-1:J=J+1
935 IF G=1 THEN 945
940 A=J: GOTO 955
945 A1=INT((J/36524.25)-51.12264)
950 A=J+1+A1-INT(A1/4)
955 B=A+1524
960 C=INT((B/365.25)-0.3343)
965 D=INT(365.25*C)
970 E=INT((B-D)/30.61)
975 D=B-D-INT(30.61*E)+F
980 M=E-1: Y=C-4716
985 IF E>13.5 THEN M=M-12
990 IF M<2.5 THEN Y=Y+1
995 PRINT "DATE: ";Y;M;D
997 END

Note on variations:  With Radio Shack Level II Basic, replace J
in line 870 with CDBL(J).  In Applesoft, use commas rather than
semicolons in lines 870 and 995.  Some Basics require a back-
slash where colons are used here.

     Listing 2 performs the inverse calculation.  Initially, J
is the Julian Day number, and F the fractional part of a day.
When the program finishes, Y is the year, M the month, and D the
day (with fraction).  This program is based on the algorithm in
Jean Meeus's Astronomical Formulae for Calculators (Willmann-
Bell, 1982), with some rearrangement to suit the many micro-
computers with only seven digit accuracy.  Here again, G
determines the calendar style.  (The Meeus book also describes
the inverse calculation, by a method different from that
described here but identical in result.)

     For example, consider the geocentric conjunction of the Sun
and Moon this month.  It occurs at 16:52:39 UT on May 30th, so
the day is expressed decimally as 30.70323 and the dialogue runs:

   >RUN "CALJD"
   Y,M,D ? 1984, 5, 30.70323
   JC (0) OR GC (1) ? 1
   J.D.:  2445851 .20323
   READY

   >RUN "JDCAL"
   J,F ? 2445851, .20323
   JC (0) OR GC (1) ? 1
   DATE:  1984  5  30.70323
   READY

     Future program listings in this department will often make
use of the Julian Day number and fraction, so readers may wish
to rewrite these listings as subroutines.  After replacing each
END statement with RETURN, you can simply insert them bodily
into other programs.

     Both listings have been thoroughly tested at Sky &
Telescope on many microcomputers, for the years -4712 through to
+3500 in both the Gregorian and Julian calendars.  But it's
wise, when trying out the programs on your own machine, to
verify the results on some known equivalents:

      Julian Cal.         Gregorian Cal.      Julian Date

    -4712 Jan.  1.5      -4713 Nov. 24.5             0.0
    -2000 Jan.  1.0      -2001 Dec. 15.0        990557.5
     -584 May  28.6       -584 May  22.6       1507900.1
     +200 Mar.  1.0       +200 Mar.  1.0       1794167.5
    +1984 Feb. 16.2      +1984 Feb. 29.2       2445759.7
    +1999 Dec. 19.5      +2000 Jan.  1.5       2451545.0
    +3000 Feb. 29.9      +3000 Mar. 21.9       2816867.4

     Many ancient calendars have been linked by Julian Day
number in O.L.Harvey's new booklet, Calendar Conversions
(American Philosophical Society, 1983).  He also mentions two
useful tricks with these numbers.  To find the day of the week
at noon when each Julian Day number begins, divide the whole
number by 7; a remainder of 0 means Monday, 1 Tuesday, and so
on, through to 6 for Sunday.  Furthermore, the Moon is within a
day or so of new on those days when the Julian Day number,
divided by 29.530588, yields .33 as the fractional part.

     Prior to 1925, astronomers actually considered each new
calendar date to commence at noon on the corresponding civil
date.  But our programs use the modern convention as to when a
calendar day begins, even for dates before 1925.  Nevertheless,
it is well to remember this change in usage when consulting
early astronomical sources.

     Also beware the "Modified Julian Date" (MJD), defined as
the true JD minus 2,400,000.5, and sometimes advocated to help
preserve digits in machines of limited precision.  In reality,
since the first two digits of the JD have been 24 only since
1859, the device is useful only from a narrow modern
perspective.  More alarming, though, is the danger of confusion
introduced by the .5 (intended to make the MJD begin when the
civil day does).

     The coexistence of this with another common device, that of
simply lopping off the highest few digits of the JD, has often
led to a confusion of 12 hours in the astronomical literature.
The practice of adjusting the JD by some constant was once
described by the late Paul Herget as "an attempt to pervert the
established system" of astronomical reckoning.  Far better not
to tinker with it, and let our machines worry about the details!

                                                ROGER W. SINNOTT

                         -----oOo-----


From the September 1984 issue of Sky & Telescope, page 255...

     Milo L. Hurley, Jr., of Aurora, Colorado, writes that our
program for computing the Julian date from the calendar date
(Listing 1 in the May issue, page 455) does not run properly for
negative years when written in Digital Research's CBASIC for his
Altos computer.

     He has traced the problem to the INT function, which takes
the integer part of a number.  In CBASIC (as on many pocket
calculators), the integer part of a negative number is obtained
by truncating the decimal part; thus, both (INT-3.2) and
INT(-3.8) yield -3.  In all the other microcomputer Basics we've
tried, the answer is -4 in these two cases.  A remedy in CBASIC
is to set up a user-defined function that mimics Basics of the
other type, and to substitute this for INT throughout the
program.

     The Basics that give -4 appear to be the clear majority,
and with them the calendar program works without modification.
These include the Microsoft versions running on the Apple, Radio
Shack, and Ohio Scientific machines, and also North Star,
Digital Equipment, and Hewlett-Packard Basics.


                         -----oOo-----

Electronic News Service

     Computer owners with modems can obtain fast news from Sky &
Telescope of comet and nova discoveries, and also program
listings from the Astronomical Computing Department.  After
joining CompuServe (through a local Radio Shack or computer
dealer), log on and move to Personal Computing and then the
Personal File Area.  Once there, at any menu, type R ACCESS
Then at the next menu type R NEWS.DAT[70275,125] to receive this
service.
00000000  20 20 20 20 20 54 68 65  20 66 6f 6c 6c 6f 77 69  |     The followi|
00000010  6e 67 20 61 72 74 69 63  6c 65 20 69 73 20 72 65  |ng article is re|
00000020  70 72 6f 64 75 63 65 64  20 77 69 74 68 20 70 65  |produced with pe|
00000030  72 6d 69 73 73 69 6f 6e  20 66 72 6f 6d 0d 74 68  |rmission from.th|
00000040  65 20 4d 61 79 20 31 39  38 34 20 69 73 73 75 65  |e May 1984 issue|
00000050  20 6f 66 20 53 6b 79 20  26 20 54 65 6c 65 73 63  | of Sky & Telesc|
00000060  6f 70 65 20 6d 61 67 61  7a 69 6e 65 2c 20 61 6e  |ope magazine, an|
00000070  64 20 72 65 6d 61 69 6e  73 20 74 68 65 0d 63 6f  |d remains the.co|
00000080  70 79 72 69 67 68 74 20  6f 66 20 74 68 65 20 53  |pyright of the S|
00000090  6b 79 20 50 75 62 6c 69  73 68 69 6e 67 20 43 6f  |ky Publishing Co|
000000a0  72 70 6f 72 61 74 69 6f  6e 2e 0d 0d 54 68 65 20  |rporation...The |
000000b0  22 53 6b 79 20 26 20 54  65 6c 65 73 63 6f 70 65  |"Sky & Telescope|
000000c0  22 20 6d 61 67 61 7a 69  6e 65 20 28 49 53 53 4e  |" magazine (ISSN|
000000d0  20 30 30 33 37 2d 36 36  30 34 29 20 69 73 20 70  | 0037-6604) is p|
000000e0  75 62 6c 69 73 68 65 64  0d 6d 6f 6e 74 68 6c 79  |ublished.monthly|
000000f0  20 62 79 3a 0d 0d 20 20  20 20 20 20 20 20 20 20  | by:..          |
00000100  20 20 20 20 20 20 20 20  53 6b 79 20 50 75 62 6c  |        Sky Publ|
00000110  69 73 68 69 6e 67 20 43  6f 72 70 6f 72 61 74 69  |ishing Corporati|
00000120  6f 6e 2c 0d 20 20 20 20  20 20 20 20 20 20 20 20  |on,.            |
00000130  20 20 20 20 20 20 34 39  2c 20 42 61 79 20 53 74  |      49, Bay St|
00000140  61 74 65 20 52 6f 61 64  2c 0d 20 20 20 20 20 20  |ate Road,.      |
00000150  20 20 20 20 20 20 20 20  20 20 20 20 43 61 6d 62  |            Camb|
00000160  72 69 64 67 65 2c 0d 20  20 20 20 20 20 20 20 20  |ridge,.         |
00000170  20 20 20 20 20 20 20 20  20 4d 61 73 73 2e 20 20  |         Mass.  |
00000180  30 32 32 33 38 2d 31 32  39 30 0d 20 20 20 20 20  |02238-1290.     |
00000190  20 20 20 20 20 20 20 20  20 20 20 20 20 55 2e 53  |             U.S|
000001a0  2e 41 2e 0d 0d 20 20 20  20 20 20 20 20 20 20 20  |.A...           |
000001b0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 2d 2d  |              --|
000001c0  2d 2d 2d 6f 4f 6f 2d 2d  2d 2d 2d 0d 0d 0d 0d 0d  |---oOo-----.....|
000001d0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
000001e0  20 20 20 20 41 73 74 72  6f 6e 6f 6d 69 63 61 6c  |    Astronomical|
000001f0  20 20 43 6f 6d 70 75 74  69 6e 67 0d 0d 20 20 20  |  Computing..   |
00000200  20 20 20 20 20 20 20 20  20 20 20 20 20 20 43 6f  |              Co|
00000210  6e 64 75 63 74 65 64 20  62 79 20 52 6f 67 65 72  |nducted by Roger|
00000220  20 57 2e 20 53 69 6e 6e  6f 74 74 0d 0d 0d 20 20  | W. Sinnott...  |
00000230  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000240  54 61 6d 69 6e 67 20 4f  75 72 20 43 68 61 6f 74  |Taming Our Chaot|
00000250  69 63 20 43 61 6c 65 6e  64 61 72 0d 0d 0d 0d 20  |ic Calendar.... |
00000260  20 20 20 20 41 20 72 6f  75 74 69 6e 65 20 66 6f  |    A routine fo|
00000270  72 20 63 61 6c 65 6e 64  61 72 20 63 6f 6e 76 65  |r calendar conve|
00000280  72 73 69 6f 6e 20 6c 69  65 73 20 61 74 20 74 68  |rsion lies at th|
00000290  65 20 68 65 61 72 74 20  6f 66 20 6d 61 6e 79 0d  |e heart of many.|
000002a0  61 73 74 72 6f 6e 6f 6d  69 63 61 6c 20 70 72 6f  |astronomical pro|
000002b0  67 72 61 6d 73 2e 20 20  4f 66 74 65 6e 20 77 65  |grams.  Often we|
000002c0  20 77 61 6e 74 20 61 20  63 6f 6d 70 75 74 65 72  | want a computer|
000002d0  20 74 6f 20 63 61 6c 63  75 6c 61 74 65 0d 73 6f  | to calculate.so|
000002e0  6d 65 74 68 69 6e 67 20  66 6f 72 20 61 20 70 61  |mething for a pa|
000002f0  72 74 69 63 75 6c 61 72  20 64 61 74 65 20 61 6e  |rticular date an|
00000300  64 20 74 69 6d 65 2c 20  6f 72 20 74 6f 20 74 65  |d time, or to te|
00000310  6c 6c 20 75 73 20 74 68  65 20 64 61 79 0d 61 6e  |ll us the day.an|
00000320  64 20 6d 6f 6e 74 68 20  77 68 65 6e 20 61 6e 20  |d month when an |
00000330  65 76 65 6e 74 20 77 69  6c 6c 20 6f 63 63 75 72  |event will occur|
00000340  20 28 61 6e 20 65 63 6c  69 70 73 65 20 6f 72 20  | (an eclipse or |
00000350  6f 63 63 75 6c 74 61 74  69 6f 6e 2c 0d 70 65 72  |occultation,.per|
00000360  68 61 70 73 29 2e 20 20  44 69 67 69 74 61 6c 20  |haps).  Digital |
00000370  77 61 74 63 68 65 73 20  6f 66 74 65 6e 20 66 61  |watches often fa|
00000380  69 6c 20 61 74 20 64 61  74 65 20 63 6f 6e 76 65  |il at date conve|
00000390  72 73 69 6f 6e 2c 20 61  6e 64 0d 6c 61 73 74 20  |rsion, and.last |
000003a0  46 65 62 72 75 61 72 79  20 32 39 74 68 20 71 75  |February 29th qu|
000003b0  69 74 65 20 61 20 66 65  77 20 6f 66 20 74 68 65  |ite a few of the|
000003c0  6d 20 61 72 6f 75 6e 64  20 74 68 65 20 77 6f 72  |m around the wor|
000003d0  6c 64 20 70 72 6f 62 61  62 6c 79 0d 69 6e 64 69  |ld probably.indi|
000003e0  63 61 74 65 64 20 4d 61  72 63 68 20 31 73 74 2e  |cated March 1st.|
000003f0  20 20 54 6f 20 6d 61 6b  65 20 6f 75 72 20 63 6f  |  To make our co|
00000400  6d 70 75 74 65 72 20 72  6f 75 74 69 6e 65 73 20  |mputer routines |
00000410  61 73 20 75 6e 69 76 65  72 73 61 6c 0d 61 73 20  |as universal.as |
00000420  70 6f 73 73 69 62 6c 65  2c 20 6c 65 74 27 73 20  |possible, let's |
00000430  6c 61 79 20 64 6f 77 6e  20 63 65 72 74 61 69 6e  |lay down certain|
00000440  20 66 69 72 6d 20 65 78  70 65 63 74 61 74 69 6f  | firm expectatio|
00000450  6e 73 20 66 6f 72 20 74  68 65 6d 2e 0d 0d 20 20  |ns for them...  |
00000460  20 20 20 46 69 72 73 74  20 6f 66 20 61 6c 6c 2c  |   First of all,|
00000470  20 74 68 65 20 6d 61 63  68 69 6e 65 20 73 68 6f  | the machine sho|
00000480  75 6c 64 20 22 72 65 73  6f 6c 76 65 22 20 69 6e  |uld "resolve" in|
00000490  74 65 72 76 61 6c 73 20  61 73 0d 73 6d 61 6c 6c  |tervals as.small|
000004a0  20 61 73 20 31 20 73 65  63 6f 6e 64 20 6f 66 20  | as 1 second of |
000004b0  74 69 6d 65 20 28 74 68  61 74 20 69 73 2c 20 61  |time (that is, a|
000004c0  62 6f 75 74 20 30 2e 30  30 30 30 30 31 20 64 61  |bout 0.000001 da|
000004d0  79 29 2e 20 20 49 74 0d  74 61 6b 65 73 20 6f 6e  |y).  It.takes on|
000004e0  6c 79 20 61 20 6c 69 74  74 6c 65 20 65 66 66 6f  |ly a little effo|
000004f0  72 74 20 74 6f 20 62 75  69 6c 64 20 74 68 69 73  |rt to build this|
00000500  20 61 63 63 75 72 61 63  79 20 69 6e 74 6f 20 6f  | accuracy into o|
00000510  75 72 0d 63 61 6c 65 6e  64 61 72 20 63 6f 6e 76  |ur.calendar conv|
00000520  65 72 73 69 6f 6e 20 72  6f 75 74 69 6e 65 73 20  |ersion routines |
00000530  73 6f 20 74 68 65 79 20  77 6f 6e 27 74 20 6e 65  |so they won't ne|
00000540  65 64 20 6c 61 74 65 72  20 72 65 76 69 73 69 6f  |ed later revisio|
00000550  6e 0d 66 6f 72 20 73 70  65 63 69 61 6c 20 70 72  |n.for special pr|
00000560  6f 67 72 61 6d 73 2e 0d  0d 20 20 20 20 20 53 65  |ograms...     Se|
00000570  63 6f 6e 64 2c 20 6c 65  74 27 73 20 61 76 6f 69  |cond, let's avoi|
00000580  64 20 73 69 6d 70 6c 65  2d 6c 6f 6f 6b 69 6e 67  |d simple-looking|
00000590  20 70 72 6f 63 65 64 75  72 65 73 20 74 68 61 74  | procedures that|
000005a0  20 6f 6e 6c 79 0d 77 6f  72 6b 20 62 65 74 77 65  | only.work betwe|
000005b0  65 6e 20 63 65 72 74 61  69 6e 20 79 65 61 72 73  |en certain years|
000005c0  20 28 66 6f 72 20 65 78  61 6d 70 6c 65 2c 20 41  | (for example, A|
000005d0  2e 44 2e 20 31 39 30 31  20 74 6f 20 32 30 39 39  |.D. 1901 to 2099|
000005e0  29 2e 0d 53 6f 6f 6e 65  72 20 6f 72 20 6c 61 74  |)..Sooner or lat|
000005f0  65 72 2c 20 77 65 27 6c  6c 20 70 72 6f 62 61 62  |er, we'll probab|
00000600  6c 79 20 61 74 74 65 6d  70 74 20 61 20 63 61 6c  |ly attempt a cal|
00000610  63 75 6c 61 74 69 6f 6e  20 6f 75 74 73 69 64 65  |culation outside|
00000620  0d 74 68 69 73 20 69 6e  74 65 72 76 61 6c 2c 20  |.this interval, |
00000630  6c 69 74 74 6c 65 20 73  75 73 70 65 63 74 69 6e  |little suspectin|
00000640  67 20 74 68 61 74 20 74  68 65 20 63 6f 6d 70 75  |g that the compu|
00000650  74 65 72 20 77 69 6c 6c  0d 6d 69 73 69 6e 74 65  |ter will.misinte|
00000660  72 70 72 65 74 20 61 20  64 61 74 65 20 77 65 27  |rpret a date we'|
00000670  76 65 20 65 6e 74 65 72  65 64 2c 20 75 73 75 61  |ve entered, usua|
00000680  6c 6c 79 20 62 79 20 73  6f 6d 65 20 77 68 6f 6c  |lly by some whol|
00000690  65 20 6e 75 6d 62 65 72  0d 6f 66 20 64 61 79 73  |e number.of days|
000006a0  21 0d 0d 20 20 20 20 20  54 6f 20 65 78 70 72 65  |!..     To expre|
000006b0  73 73 20 61 6e 20 69 6e  73 74 61 6e 74 20 69 6e  |ss an instant in|
000006c0  74 65 72 6e 61 6c 6c 79  20 69 6e 20 74 68 65 20  |ternally in the |
000006d0  63 6f 6d 70 75 74 65 72  2c 20 77 65 27 6c 6c 20  |computer, we'll |
000006e0  75 73 65 0d 4a 75 6c 69  61 6e 20 64 61 79 20 6e  |use.Julian day n|
000006f0  75 6d 62 65 72 73 20 61  6e 64 20 66 72 61 63 74  |umbers and fract|
00000700  69 6f 6e 73 2c 20 61 73  20 66 69 72 73 74 20 61  |ions, as first a|
00000710  70 70 6c 69 65 64 20 74  6f 0d 61 73 74 72 6f 6e  |pplied to.astron|
00000720  6f 6d 69 63 61 6c 20 6f  62 73 65 72 76 61 74 69  |omical observati|
00000730  6f 6e 73 20 62 79 20 4a  6f 68 6e 20 48 65 72 73  |ons by John Hers|
00000740  63 68 65 6c 2e 20 20 54  68 65 20 73 74 61 72 74  |chel.  The start|
00000750  69 6e 67 0d 69 6e 73 74  61 6e 74 20 6f 66 20 74  |ing.instant of t|
00000760  68 69 73 20 73 79 73 74  65 6d 20 28 74 68 61 74  |his system (that|
00000770  20 69 73 2c 20 64 61 79  20 30 2e 30 29 20 63 6f  | is, day 0.0) co|
00000780  72 72 65 73 70 6f 6e 64  73 20 74 6f 20 6e 6f 6f  |rresponds to noo|
00000790  6e 2c 0d 47 72 65 65 6e  77 69 63 68 20 4d 65 61  |n,.Greenwich Mea|
000007a0  6e 20 54 69 6d 65 2c 20  6f 6e 20 4a 61 6e 75 61  |n Time, on Janua|
000007b0  72 79 20 31 2c 20 34 37  31 33 20 42 2e 43 2e 20  |ry 1, 4713 B.C. |
000007c0  2d 20 73 75 66 66 69 63  69 65 6e 74 6c 79 20 66  |- sufficiently f|
000007d0  61 72 0d 62 61 63 6b 20  69 6e 20 74 69 6d 65 20  |ar.back in time |
000007e0  74 68 61 74 20 77 65 20  73 68 6f 75 6c 64 20 6e  |that we should n|
000007f0  65 76 65 72 20 68 61 76  65 20 74 6f 20 77 6f 72  |ever have to wor|
00000800  72 79 20 61 62 6f 75 74  20 6e 65 67 61 74 69 76  |ry about negativ|
00000810  65 0d 64 61 79 20 6e 75  6d 62 65 72 73 20 28 61  |e.day numbers (a|
00000820  6e 64 20 77 6f 6e 27 74  29 2e 20 20 41 74 20 30  |nd won't).  At 0|
00000830  20 68 6f 75 72 73 20 55  6e 69 76 65 72 73 61 6c  | hours Universal|
00000840  20 54 69 6d 65 20 6f 6e  20 61 6e 79 20 64 61 79  | Time on any day|
00000850  2c 0d 74 68 65 20 64 65  63 69 6d 61 6c 20 70 61  |,.the decimal pa|
00000860  72 74 20 6f 66 20 74 68  65 20 4a 75 6c 69 61 6e  |rt of the Julian|
00000870  20 64 61 74 65 20 69 73  20 2e 35 20 65 78 61 63  | date is .5 exac|
00000880  74 6c 79 2e 0d 0d 20 20  20 20 20 57 68 61 74 20  |tly...     What |
00000890  61 62 6f 75 74 20 74 68  65 20 63 68 61 6e 67 65  |about the change|
000008a0  6f 76 65 72 20 66 72 6f  6d 20 74 68 65 20 4a 75  |over from the Ju|
000008b0  6c 69 61 6e 20 63 61 6c  65 6e 64 61 72 20 74 6f  |lian calendar to|
000008c0  20 74 68 65 0d 47 72 65  67 6f 72 69 61 6e 3f 20  | the.Gregorian? |
000008d0  20 54 68 65 20 4a 75 6c  69 61 6e 20 63 61 6c 65  | The Julian cale|
000008e0  6e 64 61 72 20 28 77 68  69 63 68 20 68 61 73 20  |ndar (which has |
000008f0  6e 6f 74 68 69 6e 67 20  74 6f 20 64 6f 20 77 69  |nothing to do wi|
00000900  74 68 0d 4a 75 6c 69 61  6e 20 44 61 79 20 6e 75  |th.Julian Day nu|
00000910  6d 62 65 72 73 29 20 68  61 64 20 73 69 6d 70 6c  |mbers) had simpl|
00000920  65 72 20 6c 65 61 70 2d  79 65 61 72 20 72 75 6c  |er leap-year rul|
00000930  65 73 20 61 6e 64 20 77  61 73 20 69 6e 20 77 69  |es and was in wi|
00000940  64 65 0d 63 69 76 69 6c  20 75 73 65 20 62 65 66  |de.civil use bef|
00000950  6f 72 65 20 41 2e 44 2e  20 31 35 38 32 2e 20 20  |ore A.D. 1582.  |
00000960  54 68 65 20 73 77 69 74  63 68 20 74 6f 20 74 68  |The switch to th|
00000970  65 20 47 72 65 67 6f 72  69 61 6e 20 77 61 73 0d  |e Gregorian was.|
00000980  64 65 6c 61 79 65 64 20  75 6e 74 69 6c 20 31 37  |delayed until 17|
00000990  35 32 20 69 6e 20 45 6e  67 6c 61 6e 64 20 61 6e  |52 in England an|
000009a0  64 20 74 68 65 20 41 6d  65 72 69 63 61 6e 20 63  |d the American c|
000009b0  6f 6c 6f 6e 69 65 73 2c  20 61 6e 64 20 61 73 0d  |olonies, and as.|
000009c0  6c 61 74 65 20 61 73 20  31 38 37 33 20 69 6e 20  |late as 1873 in |
000009d0  4a 61 70 61 6e 20 61 6e  64 20 31 39 32 37 20 69  |Japan and 1927 i|
000009e0  6e 20 54 75 72 6b 65 79  2e 20 20 41 20 73 70 65  |n Turkey.  A spe|
000009f0  63 69 61 6c 20 66 6c 61  67 20 69 6e 20 61 0d 70  |cial flag in a.p|
00000a00  72 6f 67 72 61 6d 20 63  61 6e 20 65 6e 73 75 72  |rogram can ensur|
00000a10  65 20 74 68 65 20 63 6f  6d 70 75 74 65 72 20 69  |e the computer i|
00000a20  73 20 6f 72 69 65 6e 74  65 64 20 74 6f 20 74 68  |s oriented to th|
00000a30  65 20 70 72 6f 70 65 72  0d 63 61 6c 65 6e 64 61  |e proper.calenda|
00000a40  72 2e 0d 0d 20 20 20 20  20 46 69 6e 61 6c 6c 79  |r...     Finally|
00000a50  2c 20 69 74 27 73 20 69  6d 70 6f 72 74 61 6e 74  |, it's important|
00000a60  20 74 6f 20 64 69 73 74  69 6e 67 75 69 73 68 20  | to distinguish |
00000a70  41 2e 44 2e 20 61 6e 64  20 42 2e 43 2e 20 79 65  |A.D. and B.C. ye|
00000a80  61 72 73 0d 73 6f 6d 65  68 6f 77 2e 20 20 54 68  |ars.somehow.  Th|
00000a90  65 20 73 74 61 6e 64 61  72 64 20 77 61 79 20 74  |e standard way t|
00000aa0  6f 20 64 6f 20 74 68 69  73 20 72 65 67 61 72 64  |o do this regard|
00000ab0  73 20 41 2e 44 2e 20 79  65 61 72 73 20 61 73 0d  |s A.D. years as.|
00000ac0  70 6f 73 69 74 69 76 65  20 77 68 6f 6c 65 20 6e  |positive whole n|
00000ad0  75 6d 62 65 72 73 3b 20  31 20 42 2e 43 2e 20 69  |umbers; 1 B.C. i|
00000ae0  73 20 63 61 6c 6c 65 64  20 74 68 65 20 79 65 61  |s called the yea|
00000af0  72 20 30 2c 20 32 20 42  2e 43 2e 20 69 73 0d 2d  |r 0, 2 B.C. is.-|
00000b00  31 2c 20 33 20 42 2e 43  2e 20 69 73 20 2d 32 2c  |1, 3 B.C. is -2,|
00000b10  20 61 6e 64 20 73 6f 20  6f 6e 2e 20 20 54 68 69  | and so on.  Thi|
00000b20  73 20 68 65 6c 70 73 20  6b 65 65 70 20 6c 65 61  |s helps keep lea|
00000b30  70 20 79 65 61 72 73 0d  73 74 72 61 69 67 68 74  |p years.straight|
00000b40  2e 20 20 4a 75 6c 69 75  73 20 43 61 65 73 61 72  |.  Julius Caesar|
00000b50  20 69 6e 74 72 6f 64 75  63 65 64 20 68 69 73 20  | introduced his |
00000b60  63 61 6c 65 6e 64 61 72  20 72 65 66 6f 72 6d 20  |calendar reform |
00000b70  69 6e 20 74 68 65 0d 79  65 61 72 20 34 35 20 42  |in the.year 45 B|
00000b80  2e 43 2e 2c 20 77 68 69  63 68 20 62 65 63 6f 6d  |.C., which becom|
00000b90  65 73 20 2d 34 34 20 6f  6e 20 6f 75 72 20 73 63  |es -44 on our sc|
00000ba0  68 65 6d 65 2e 20 20 41  6e 64 20 73 69 6e 63 65  |heme.  And since|
00000bb0  20 74 68 61 74 0d 77 61  73 20 69 6e 20 66 61 63  | that.was in fac|
00000bc0  74 20 6c 65 61 70 20 79  65 61 72 2c 20 74 68 65  |t leap year, the|
00000bd0  20 6d 6f 64 65 72 6e 20  64 69 76 69 64 65 2d 62  | modern divide-b|
00000be0  79 2d 66 6f 75 72 20 72  75 6c 65 20 61 70 70 6c  |y-four rule appl|
00000bf0  69 65 73 20 74 6f 0d 6e  65 67 61 74 69 76 65 20  |ies to.negative |
00000c00  61 73 20 77 65 6c 6c 20  61 73 20 70 6f 73 69 74  |as well as posit|
00000c10  69 76 65 20 79 65 61 72  73 2e 20 20 28 52 65 61  |ive years.  (Rea|
00000c20  64 65 72 73 20 61 72 65  20 77 61 72 6e 65 64 20  |ders are warned |
00000c30  74 68 61 74 0d 73 6f 6d  65 20 72 65 63 65 6e 74  |that.some recent|
00000c40  20 62 6f 6f 6b 73 20 61  6e 64 20 61 72 74 69 63  | books and artic|
00000c50  6c 65 73 20 68 61 76 65  20 75 73 65 64 20 74 68  |les have used th|
00000c60  65 20 6e 6f 74 61 74 69  6f 6e 20 31 20 42 2e 43  |e notation 1 B.C|
00000c70  2e 20 3d 0d 2d 31 2c 20  61 6e 64 20 32 20 42 2e  |. =.-1, and 2 B.|
00000c80  43 2e 20 3d 20 2d 32 2c  20 61 20 76 65 72 79 20  |C. = -2, a very |
00000c90  63 6f 6e 66 75 73 69 6e  67 20 73 79 6d 62 6f 6c  |confusing symbol|
00000ca0  69 73 6d 2e 29 0d 0d 20  20 20 20 20 54 68 65 20  |ism.)..     The |
00000cb0  4a 75 6c 69 61 6e 20 63  61 6c 65 6e 64 61 72 20  |Julian calendar |
00000cc0  64 69 64 20 6e 6f 74 20  72 65 61 6c 6c 79 20 63  |did not really c|
00000cd0  6f 6d 65 20 69 6e 74 6f  20 63 6f 6e 73 69 73 74  |ome into consist|
00000ce0  65 6e 74 0d 63 69 76 69  6c 20 75 73 65 20 75 6e  |ent.civil use un|
00000cf0  74 69 6c 20 61 66 74 65  72 20 41 2e 44 2e 20 38  |til after A.D. 8|
00000d00  2e 20 20 42 75 74 20 63  68 72 6f 6e 6f 6c 6f 67  |.  But chronolog|
00000d10  65 72 73 20 63 75 73 74  6f 6d 61 72 69 6c 79 0d  |ers customarily.|
00000d20  65 78 74 72 61 70 6f 6c  61 74 65 20 69 74 20 62  |extrapolate it b|
00000d30  61 63 6b 77 61 72 64 73  20 61 6e 64 20 63 61 6c  |ackwards and cal|
00000d40  6c 20 69 74 20 74 68 65  20 4a 75 6c 69 61 6e 20  |l it the Julian |
00000d50  70 72 6f 6c 65 70 74 69  63 0d 63 61 6c 65 6e 64  |proleptic.calend|
00000d60  61 72 20 74 6f 20 64 69  73 74 69 6e 67 75 69 73  |ar to distinguis|
00000d70  68 20 69 74 20 66 72 6f  6d 20 74 68 65 20 76 61  |h it from the va|
00000d80  72 69 6f 75 73 20 63 69  76 69 6c 20 63 61 6c 65  |rious civil cale|
00000d90  6e 64 61 72 73 20 74 68  61 74 0d 6d 61 79 20 68  |ndars that.may h|
00000da0  61 76 65 20 62 65 65 6e  20 69 6e 20 75 73 65 20  |ave been in use |
00000db0  68 65 72 65 20 61 6e 64  20 74 68 65 72 65 20 70  |here and there p|
00000dc0  72 69 6f 72 20 74 6f 20  41 2e 44 2e 20 38 2e 0d  |rior to A.D. 8..|
00000dd0  0d 20 20 20 20 20 50 65  72 68 61 70 73 20 74 68  |.     Perhaps th|
00000de0  65 20 6d 6f 73 74 20 63  6f 6e 63 69 73 65 20 61  |e most concise a|
00000df0  6c 67 6f 72 69 74 68 6d  20 65 76 65 72 20 64 65  |lgorithm ever de|
00000e00  76 69 73 65 64 20 66 6f  72 0d 63 61 6c 63 75 6c  |vised for.calcul|
00000e10  61 74 69 6e 67 20 74 68  65 20 4a 75 6c 69 61 6e  |ating the Julian|
00000e20  20 64 61 79 20 6e 75 6d  62 65 72 20 66 72 6f 6d  | day number from|
00000e30  20 61 20 47 72 65 67 6f  72 69 61 6e 20 63 61 6c  | a Gregorian cal|
00000e40  65 6e 64 61 72 20 64 61  74 65 0d 69 73 20 70 69  |endar date.is pi|
00000e50  63 74 75 72 65 64 20 62  65 6c 6f 77 2e 20 20 49  |ctured below.  I|
00000e60  74 20 69 73 20 61 20 6c  69 6e 65 20 6f 66 20 46  |t is a line of F|
00000e70  6f 72 74 72 61 6e 20 61  6e 64 20 66 69 74 73 20  |ortran and fits |
00000e80  6f 6e 20 61 20 73 69 6e  67 6c 65 0d 38 30 2d 63  |on a single.80-c|
00000e90  6f 6c 75 6d 6e 20 70 75  6e 63 68 20 63 61 72 64  |olumn punch card|
00000ea0  2e 20 20 54 68 65 20 72  65 73 75 6c 74 20 69 73  |.  The result is|
00000eb0  20 61 6e 20 69 6e 74 65  67 65 72 2c 20 4a 44 2c  | an integer, JD,|
00000ec0  0d 63 6f 72 72 65 73 70  6f 6e 64 69 6e 67 20 74  |.corresponding t|
00000ed0  6f 20 74 68 65 20 4a 75  6c 69 61 6e 20 44 61 79  |o the Julian Day|
00000ee0  20 6e 75 6d 62 65 72 20  74 68 61 74 20 62 65 67  | number that beg|
00000ef0  69 6e 73 20 61 74 20 47  72 65 65 6e 77 69 63 68  |ins at Greenwich|
00000f00  0d 4d 65 61 6e 20 6e 6f  6f 6e 20 6f 66 20 79 65  |.Mean noon of ye|
00000f10  61 72 20 59 2c 20 6d 6f  6e 74 68 20 4d 2c 20 64  |ar Y, month M, d|
00000f20  61 79 20 44 20 28 61 6c  6c 20 69 6e 74 65 67 65  |ay D (all intege|
00000f30  72 73 29 2e 0d 0d 20 20  20 20 20 48 6f 77 65 76  |rs)...     Howev|
00000f40  65 72 2c 20 74 68 69 73  20 46 6f 72 74 72 61 6e  |er, this Fortran|
00000f50  20 73 74 61 74 65 6d 65  6e 74 20 6d 61 6b 65 73  | statement makes|
00000f60  20 75 73 65 20 6f 66 20  73 70 65 63 69 61 6c 20  | use of special |
00000f70  72 75 6c 65 73 0d 74 68  61 74 20 64 6f 6e 27 74  |rules.that don't|
00000f80  20 77 6f 72 6b 20 69 6e  20 6d 6f 73 74 20 76 65  | work in most ve|
00000f90  72 73 69 6f 6e 73 20 6f  66 20 42 61 73 69 63 2e  |rsions of Basic.|
00000fa0  20 20 54 68 65 20 61 62  73 65 6e 63 65 20 6f 66  |  The absence of|
00000fb0  0d 65 78 70 6c 69 63 69  74 20 64 65 63 69 6d 61  |.explicit decima|
00000fc0  6c 20 70 6f 69 6e 74 73  20 66 6f 72 63 65 73 20  |l points forces |
00000fd0  65 78 65 63 75 74 69 6f  6e 20 62 79 20 69 6e 74  |execution by int|
00000fe0  65 67 65 72 20 61 72 69  74 68 6d 65 74 69 63 3b  |eger arithmetic;|
00000ff0  0d 64 69 76 69 73 69 6f  6e 20 62 79 20 61 6e 20  |.division by an |
00001000  69 6e 74 65 67 65 72 20  6c 65 61 64 73 20 74 6f  |integer leads to|
00001010  20 61 6e 20 69 6e 74 65  67 65 72 20 71 75 6f 74  | an integer quot|
00001020  69 65 6e 74 2c 20 61 6e  64 20 74 68 65 0d 72 65  |ient, and the.re|
00001030  6d 61 69 6e 64 65 72 20  69 73 20 64 69 73 63 61  |mainder is disca|
00001040  72 64 65 64 2e 20 20 28  46 6f 72 20 65 78 61 6d  |rded.  (For exam|
00001050  70 6c 65 2c 20 35 2f 32  20 3d 20 32 2c 20 61 6e  |ple, 5/2 = 2, an|
00001060  64 20 2d 31 30 2f 36 20  3d 20 2d 31 2e 29 0d 54  |d -10/6 = -1.).T|
00001070  68 65 20 6e 61 74 75 72  61 6c 20 61 70 70 72 6f  |he natural appro|
00001080  61 63 68 20 69 73 20 74  6f 20 72 65 77 72 69 74  |ach is to rewrit|
00001090  65 20 74 68 65 20 6c 69  6e 65 73 2c 20 75 73 69  |e the lines, usi|
000010a0  6e 67 20 74 68 65 20 49  4e 54 0d 66 75 6e 63 74  |ng the INT.funct|
000010b0  69 6f 6e 20 6f 66 20 42  61 73 69 63 2e 20 20 42  |ion of Basic.  B|
000010c0  75 74 20 61 6c 6c 20 6d  69 63 72 6f 63 6f 6d 70  |ut all microcomp|
000010d0  75 74 65 72 20 42 61 73  69 63 73 20 65 76 61 6c  |uter Basics eval|
000010e0  75 61 74 65 0d 49 4e 54  28 35 2f 32 29 20 61 73  |uate.INT(5/2) as|
000010f0  20 32 2c 20 77 68 69 6c  65 20 49 4e 54 28 2d 31  | 2, while INT(-1|
00001100  30 2f 36 29 20 62 65 63  6f 6d 65 73 20 2d 32 20  |0/6) becomes -2 |
00001110  69 6e 73 74 65 61 64 20  6f 66 20 2d 31 2e 0d 0d  |instead of -1...|
00001120  20 20 20 20 20 54 68 65  72 65 66 6f 72 65 2c 20  |     Therefore, |
00001130  77 65 20 68 61 76 65 20  74 61 6b 65 6e 20 73 70  |we have taken sp|
00001140  65 63 69 61 6c 20 63 61  72 65 20 69 6e 20 64 65  |ecial care in de|
00001150  73 69 67 6e 69 6e 67 20  4c 69 73 74 69 6e 67 0d  |signing Listing.|
00001160  31 2c 20 61 20 70 72 6f  67 72 61 6d 20 62 61 73  |1, a program bas|
00001170  65 64 20 6f 6e 20 74 68  65 20 73 69 6e 67 6c 65  |ed on the single|
00001180  20 6c 69 6e 65 20 6f 66  20 46 6f 72 74 72 61 6e  | line of Fortran|
00001190  20 62 75 74 20 77 69 74  68 20 61 64 64 65 64 0d  | but with added.|
000011a0  66 65 61 74 75 72 65 73  2e 20 20 49 74 20 77 69  |features.  It wi|
000011b0  6c 6c 20 77 6f 72 6b 20  77 69 74 68 20 65 69 74  |ll work with eit|
000011c0  68 65 72 20 74 68 65 20  47 72 65 67 6f 72 69 61  |her the Gregoria|
000011d0  6e 20 6f 72 20 4a 75 6c  69 61 6e 0d 63 61 6c 65  |n or Julian.cale|
000011e0  6e 64 61 72 73 2c 20 61  6e 64 20 77 69 74 68 20  |ndars, and with |
000011f0  65 69 74 68 65 72 20 6e  65 67 61 74 69 76 65 20  |either negative |
00001200  6f 72 20 70 6f 73 69 74  69 76 65 20 79 65 61 72  |or positive year|
00001210  73 2e 0d 4d 6f 72 65 6f  76 65 72 2c 20 74 68 65  |s..Moreover, the|
00001220  20 70 72 6f 67 72 61 6d  20 73 68 6f 75 6c 64 20  | program should |
00001230  72 75 6e 20 63 6f 72 72  65 63 74 6c 79 20 6f 6e  |run correctly on|
00001240  20 61 6e 79 20 6d 69 63  72 6f 63 6f 6d 70 75 74  | any microcomput|
00001250  65 72 0d 74 68 61 74 20  77 6f 72 6b 73 20 74 6f  |er.that works to|
00001260  20 61 74 20 6c 65 61 73  74 20 73 65 76 65 6e 20  | at least seven |
00001270  64 69 67 69 74 20 61 63  63 75 72 61 63 79 2e 0d  |digit accuracy..|
00001280  0d 0d 4a 44 3d 33 36 37  2a 59 2d 37 2a 28 59 2b  |..JD=367*Y-7*(Y+|
00001290  28 4d 2b 39 29 2f 31 32  29 2f 34 2d 33 2a 28 28  |(M+9)/12)/4-3*((|
000012a0  59 2b 28 4d 2d 39 29 2f  37 29 2f 31 30 30 2b 31  |Y+(M-9)/7)/100+1|
000012b0  29 2f 34 2b 32 37 35 2a  4d 2f 39 2b 44 2b 31 37  |)/4+275*M/9+D+17|
000012c0  32 31 30 32 39 0d 0d 54  68 69 73 20 72 65 6d 61  |21029..This rema|
000012d0  72 6b 61 62 6c 65 20 6f  6e 65 2d 6c 69 6e 65 20  |rkable one-line |
000012e0  46 6f 72 74 72 61 6e 20  73 74 61 74 65 6d 65 6e  |Fortran statemen|
000012f0  74 20 63 6f 6e 76 65 72  74 73 20 61 20 47 72 65  |t converts a Gre|
00001300  67 6f 72 69 61 6e 0d 63  61 6c 65 6e 64 61 72 20  |gorian.calendar |
00001310  64 61 74 65 20 69 6e 74  6f 20 61 20 4a 75 6c 69  |date into a Juli|
00001320  61 6e 20 44 61 79 20 6e  75 6d 62 65 72 2e 20 20  |an Day number.  |
00001330  49 74 20 61 70 70 65 61  72 65 64 20 69 6e 20 41  |It appeared in A|
00001340  73 74 72 6f 70 68 79 73  69 63 61 6c 0d 4a 6f 75  |strophysical.Jou|
00001350  72 6e 61 6c 20 53 75 70  70 6c 65 6d 65 6e 74 20  |rnal Supplement |
00001360  53 65 72 69 65 73 2c 20  34 31 2c 20 31 39 37 39  |Series, 41, 1979|
00001370  2c 20 70 61 67 65 20 33  39 32 2c 20 61 66 74 65  |, page 392, afte|
00001380  72 20 62 65 69 6e 67 20  64 65 76 69 73 65 64 20  |r being devised |
00001390  69 6e 0d 31 39 36 38 20  62 79 20 48 2e 46 2e 46  |in.1968 by H.F.F|
000013a0  6c 69 65 67 65 6c 20 61  6e 64 20 54 2e 43 2e 56  |liegel and T.C.V|
000013b0  61 6e 20 46 6c 61 6e 64  65 72 6e 20 61 6e 64 20  |an Flandern and |
000013c0  6c 61 74 65 72 20 22 63  6f 6d 70 61 63 74 65 64  |later "compacted|
000013d0  22 20 62 79 0d 50 2e 4d  2e 4d 75 6c 6c 65 72 20  |" by.P.M.Muller |
000013e0  61 6e 64 20 52 2e 4e 2e  57 69 6d 62 65 72 6c 79  |and R.N.Wimberly|
000013f0  2e 20 20 49 74 20 69 73  20 64 65 73 69 67 6e 65  |.  It is designe|
00001400  64 20 66 6f 72 20 41 2e  44 2e 20 79 65 61 72 73  |d for A.D. years|
00001410  20 6f 6e 6c 79 20 61 6e  64 0d 72 65 71 75 69 72  | only and.requir|
00001420  65 73 20 73 6f 6d 65 20  63 68 61 6e 67 65 73 20  |es some changes |
00001430  62 65 66 6f 72 65 20 62  65 69 6e 67 20 75 73 65  |before being use|
00001440  64 20 69 6e 20 61 20 42  61 73 69 63 20 70 72 6f  |d in a Basic pro|
00001450  67 72 61 6d 20 28 73 65  65 20 74 65 78 74 29 2e  |gram (see text).|
00001460  0d 20 20 20 20 20 49 6e  69 74 69 61 6c 6c 79 20  |.     Initially |
00001470  77 65 20 69 6e 70 75 74  20 59 2c 20 4d 2c 20 61  |we input Y, M, a|
00001480  6e 64 20 44 2c 20 61 6e  64 20 73 65 74 20 47 20  |nd D, and set G |
00001490  3d 20 31 20 66 6f 72 20  74 68 65 0d 47 72 65 67  |= 1 for the.Greg|
000014a0  6f 72 69 61 6e 20 63 61  6c 65 6e 64 61 72 20 6f  |orian calendar o|
000014b0  72 20 47 20 3d 20 30 20  66 6f 72 20 74 68 65 20  |r G = 0 for the |
000014c0  4a 75 6c 69 61 6e 20 6f  6e 65 2e 20 20 54 68 65  |Julian one.  The|
000014d0  20 64 61 79 20 44 20 63  61 6e 0d 62 65 20 65 6e  | day D can.be en|
000014e0  74 65 72 65 64 20 74 6f  20 66 69 76 65 20 64 65  |tered to five de|
000014f0  63 69 6d 61 6c 20 70 6c  61 63 65 73 20 6f 72 20  |cimal places or |
00001500  6d 6f 72 65 2e 20 20 54  68 65 6e 20 74 68 65 20  |more.  Then the |
00001510  70 72 6f 67 72 61 6d 0d  64 65 74 65 72 6d 69 6e  |program.determin|
00001520  65 73 20 74 68 65 20 69  6e 74 65 67 65 72 20 70  |es the integer p|
00001530  61 72 74 20 4a 20 61 6e  64 20 66 72 61 63 74 69  |art J and fracti|
00001540  6f 6e 61 6c 20 70 61 72  74 20 46 20 6f 66 20 74  |onal part F of t|
00001550  68 65 0d 4a 75 6c 69 61  6e 20 64 61 74 65 2e 20  |he.Julian date. |
00001560  20 49 74 20 69 73 20 76  65 72 79 20 69 6d 70 6f  | It is very impo|
00001570  72 74 61 6e 74 20 6e 6f  74 20 74 6f 20 61 64 64  |rtant not to add|
00001580  20 4a 20 61 6e 64 20 46  20 74 6f 67 65 74 68 65  | J and F togethe|
00001590  72 3b 0d 74 68 65 79 20  6d 75 73 74 20 62 65 20  |r;.they must be |
000015a0  6b 65 70 74 20 61 73 20  73 65 70 61 72 61 74 65  |kept as separate|
000015b0  20 69 6e 74 65 67 65 72  20 61 6e 64 20 66 72 61  | integer and fra|
000015c0  63 74 69 6f 6e 61 6c 20  70 61 72 74 73 0d 74 68  |ctional parts.th|
000015d0  72 6f 75 67 68 6f 75 74  20 61 20 77 6f 72 6b 69  |roughout a worki|
000015e0  6e 67 20 70 72 6f 67 72  61 6d 20 73 6f 20 61 73  |ng program so as|
000015f0  20 6e 6f 74 20 74 6f 20  6c 6f 73 65 20 61 63 63  | not to lose acc|
00001600  75 72 61 63 79 2c 20 75  6e 6c 65 73 73 0d 61 20  |uracy, unless.a |
00001610  68 69 67 68 20 70 72 65  63 69 73 69 6f 6e 20 42  |high precision B|
00001620  61 73 69 63 20 69 73 20  75 73 65 64 2e 0d 0d 0d  |asic is used....|
00001630  4c 69 73 74 69 6e 67 20  31 0d 0d 38 30 30 20 52  |Listing 1..800 R|
00001640  45 4d 20 20 20 43 41 4c  45 4e 44 41 52 20 2d 2d  |EM   CALENDAR --|
00001650  3e 20 4a 44 0d 38 30 35  20 52 45 4d 0d 38 31 30  |> JD.805 REM.810|
00001660  20 49 4e 50 55 54 20 22  59 2c 4d 2c 44 20 22 3b  | INPUT "Y,M,D ";|
00001670  59 2c 4d 2c 44 0d 38 31  35 20 49 4e 50 55 54 20  |Y,M,D.815 INPUT |
00001680  22 4a 43 20 28 30 29 20  4f 52 20 47 43 20 28 31  |"JC (0) OR GC (1|
00001690  29 20 22 3b 47 0d 38 32  30 20 44 31 3d 49 4e 54  |) ";G.820 D1=INT|
000016a0  28 44 29 3a 20 46 3d 44  2d 44 31 2d 30 2e 35 0d  |(D): F=D-D1-0.5.|
000016b0  38 32 35 20 4a 3d 2d 49  4e 54 28 37 2a 28 49 4e  |825 J=-INT(7*(IN|
000016c0  54 28 28 4d 2b 39 29 2f  31 32 29 2b 59 29 2f 34  |T((M+9)/12)+Y)/4|
000016d0  29 0d 38 33 30 20 49 46  20 47 3d 30 20 54 48 45  |).830 IF G=0 THE|
000016e0  4e 20 38 35 30 0d 38 33  35 20 53 3d 53 47 4e 28  |N 850.835 S=SGN(|
000016f0  4d 2d 39 29 3a 20 41 3d  41 42 53 28 4d 2d 39 29  |M-9): A=ABS(M-9)|
00001700  0d 38 34 30 20 4a 31 3d  49 4e 54 28 59 2b 53 2a  |.840 J1=INT(Y+S*|
00001710  49 4e 54 28 41 2f 37 29  29 0d 38 34 35 20 4a 31  |INT(A/7)).845 J1|
00001720  3d 2d 49 4e 54 28 28 49  4e 54 28 4a 31 2f 31 30  |=-INT((INT(J1/10|
00001730  30 29 2b 31 29 2a 33 2f  34 29 0d 38 35 30 20 4a  |0)+1)*3/4).850 J|
00001740  3d 4a 2b 49 4e 54 28 32  37 35 2a 4d 2f 39 29 2b  |=J+INT(275*M/9)+|
00001750  44 31 2b 47 2a 4a 31 0d  38 35 35 20 4a 3d 4a 2b  |D1+G*J1.855 J=J+|
00001760  31 37 32 31 30 32 37 2b  32 2a 47 2b 33 36 37 2a  |1721027+2*G+367*|
00001770  59 0d 38 36 30 20 49 46  20 46 3e 3d 30 20 54 48  |Y.860 IF F>=0 TH|
00001780  45 4e 20 38 37 30 0d 38  36 35 20 46 3d 46 2b 31  |EN 870.865 F=F+1|
00001790  3a 20 4a 3d 4a 2d 31 0d  38 37 30 20 50 52 49 4e  |: J=J-1.870 PRIN|
000017a0  54 20 22 4a 2e 44 2e 3a  20 22 3b 4a 3b 46 0d 38  |T "J.D.: ";J;F.8|
000017b0  37 35 20 45 4e 44 0d 0d  0d 4c 69 73 74 69 6e 67  |75 END...Listing|
000017c0  20 32 0d 0d 39 30 30 20  52 45 4d 20 20 20 4a 44  | 2..900 REM   JD|
000017d0  20 2d 2d 2d 3e 20 43 41  4c 45 4e 44 41 52 0d 39  | ---> CALENDAR.9|
000017e0  30 35 20 52 45 4d 0d 39  31 30 20 49 4e 50 55 54  |05 REM.910 INPUT|
000017f0  20 22 4a 2c 46 20 22 3b  4a 2c 46 0d 39 31 35 20  | "J,F ";J,F.915 |
00001800  49 4e 50 55 54 20 22 4a  43 20 28 30 29 20 4f 52  |INPUT "JC (0) OR|
00001810  20 47 43 20 28 31 29 20  22 3b 47 0d 39 32 30 20  | GC (1) ";G.920 |
00001820  46 3d 46 2b 30 2e 35 0d  39 32 35 20 49 46 20 46  |F=F+0.5.925 IF F|
00001830  3c 31 20 54 48 45 4e 20  39 33 35 0d 39 33 30 20  |<1 THEN 935.930 |
00001840  46 3d 46 2d 31 3a 4a 3d  4a 2b 31 0d 39 33 35 20  |F=F-1:J=J+1.935 |
00001850  49 46 20 47 3d 31 20 54  48 45 4e 20 39 34 35 0d  |IF G=1 THEN 945.|
00001860  39 34 30 20 41 3d 4a 3a  20 47 4f 54 4f 20 39 35  |940 A=J: GOTO 95|
00001870  35 0d 39 34 35 20 41 31  3d 49 4e 54 28 28 4a 2f  |5.945 A1=INT((J/|
00001880  33 36 35 32 34 2e 32 35  29 2d 35 31 2e 31 32 32  |36524.25)-51.122|
00001890  36 34 29 0d 39 35 30 20  41 3d 4a 2b 31 2b 41 31  |64).950 A=J+1+A1|
000018a0  2d 49 4e 54 28 41 31 2f  34 29 0d 39 35 35 20 42  |-INT(A1/4).955 B|
000018b0  3d 41 2b 31 35 32 34 0d  39 36 30 20 43 3d 49 4e  |=A+1524.960 C=IN|
000018c0  54 28 28 42 2f 33 36 35  2e 32 35 29 2d 30 2e 33  |T((B/365.25)-0.3|
000018d0  33 34 33 29 0d 39 36 35  20 44 3d 49 4e 54 28 33  |343).965 D=INT(3|
000018e0  36 35 2e 32 35 2a 43 29  0d 39 37 30 20 45 3d 49  |65.25*C).970 E=I|
000018f0  4e 54 28 28 42 2d 44 29  2f 33 30 2e 36 31 29 0d  |NT((B-D)/30.61).|
00001900  39 37 35 20 44 3d 42 2d  44 2d 49 4e 54 28 33 30  |975 D=B-D-INT(30|
00001910  2e 36 31 2a 45 29 2b 46  0d 39 38 30 20 4d 3d 45  |.61*E)+F.980 M=E|
00001920  2d 31 3a 20 59 3d 43 2d  34 37 31 36 0d 39 38 35  |-1: Y=C-4716.985|
00001930  20 49 46 20 45 3e 31 33  2e 35 20 54 48 45 4e 20  | IF E>13.5 THEN |
00001940  4d 3d 4d 2d 31 32 0d 39  39 30 20 49 46 20 4d 3c  |M=M-12.990 IF M<|
00001950  32 2e 35 20 54 48 45 4e  20 59 3d 59 2b 31 0d 39  |2.5 THEN Y=Y+1.9|
00001960  39 35 20 50 52 49 4e 54  20 22 44 41 54 45 3a 20  |95 PRINT "DATE: |
00001970  22 3b 59 3b 4d 3b 44 0d  39 39 37 20 45 4e 44 0d  |";Y;M;D.997 END.|
00001980  0d 4e 6f 74 65 20 6f 6e  20 76 61 72 69 61 74 69  |.Note on variati|
00001990  6f 6e 73 3a 20 20 57 69  74 68 20 52 61 64 69 6f  |ons:  With Radio|
000019a0  20 53 68 61 63 6b 20 4c  65 76 65 6c 20 49 49 20  | Shack Level II |
000019b0  42 61 73 69 63 2c 20 72  65 70 6c 61 63 65 20 4a  |Basic, replace J|
000019c0  0d 69 6e 20 6c 69 6e 65  20 38 37 30 20 77 69 74  |.in line 870 wit|
000019d0  68 20 43 44 42 4c 28 4a  29 2e 20 20 49 6e 20 41  |h CDBL(J).  In A|
000019e0  70 70 6c 65 73 6f 66 74  2c 20 75 73 65 20 63 6f  |pplesoft, use co|
000019f0  6d 6d 61 73 20 72 61 74  68 65 72 20 74 68 61 6e  |mmas rather than|
00001a00  0d 73 65 6d 69 63 6f 6c  6f 6e 73 20 69 6e 20 6c  |.semicolons in l|
00001a10  69 6e 65 73 20 38 37 30  20 61 6e 64 20 39 39 35  |ines 870 and 995|
00001a20  2e 20 20 53 6f 6d 65 20  42 61 73 69 63 73 20 72  |.  Some Basics r|
00001a30  65 71 75 69 72 65 20 61  20 62 61 63 6b 2d 0d 73  |equire a back-.s|
00001a40  6c 61 73 68 20 77 68 65  72 65 20 63 6f 6c 6f 6e  |lash where colon|
00001a50  73 20 61 72 65 20 75 73  65 64 20 68 65 72 65 2e  |s are used here.|
00001a60  0d 0d 20 20 20 20 20 4c  69 73 74 69 6e 67 20 32  |..     Listing 2|
00001a70  20 70 65 72 66 6f 72 6d  73 20 74 68 65 20 69 6e  | performs the in|
00001a80  76 65 72 73 65 20 63 61  6c 63 75 6c 61 74 69 6f  |verse calculatio|
00001a90  6e 2e 20 20 49 6e 69 74  69 61 6c 6c 79 2c 20 4a  |n.  Initially, J|
00001aa0  0d 69 73 20 74 68 65 20  4a 75 6c 69 61 6e 20 44  |.is the Julian D|
00001ab0  61 79 20 6e 75 6d 62 65  72 2c 20 61 6e 64 20 46  |ay number, and F|
00001ac0  20 74 68 65 20 66 72 61  63 74 69 6f 6e 61 6c 20  | the fractional |
00001ad0  70 61 72 74 20 6f 66 20  61 20 64 61 79 2e 0d 57  |part of a day..W|
00001ae0  68 65 6e 20 74 68 65 20  70 72 6f 67 72 61 6d 20  |hen the program |
00001af0  66 69 6e 69 73 68 65 73  2c 20 59 20 69 73 20 74  |finishes, Y is t|
00001b00  68 65 20 79 65 61 72 2c  20 4d 20 74 68 65 20 6d  |he year, M the m|
00001b10  6f 6e 74 68 2c 20 61 6e  64 20 44 20 74 68 65 0d  |onth, and D the.|
00001b20  64 61 79 20 28 77 69 74  68 20 66 72 61 63 74 69  |day (with fracti|
00001b30  6f 6e 29 2e 20 20 54 68  69 73 20 70 72 6f 67 72  |on).  This progr|
00001b40  61 6d 20 69 73 20 62 61  73 65 64 20 6f 6e 20 74  |am is based on t|
00001b50  68 65 20 61 6c 67 6f 72  69 74 68 6d 20 69 6e 0d  |he algorithm in.|
00001b60  4a 65 61 6e 20 4d 65 65  75 73 27 73 20 41 73 74  |Jean Meeus's Ast|
00001b70  72 6f 6e 6f 6d 69 63 61  6c 20 46 6f 72 6d 75 6c  |ronomical Formul|
00001b80  61 65 20 66 6f 72 20 43  61 6c 63 75 6c 61 74 6f  |ae for Calculato|
00001b90  72 73 20 28 57 69 6c 6c  6d 61 6e 6e 2d 0d 42 65  |rs (Willmann-.Be|
00001ba0  6c 6c 2c 20 31 39 38 32  29 2c 20 77 69 74 68 20  |ll, 1982), with |
00001bb0  73 6f 6d 65 20 72 65 61  72 72 61 6e 67 65 6d 65  |some rearrangeme|
00001bc0  6e 74 20 74 6f 20 73 75  69 74 20 74 68 65 20 6d  |nt to suit the m|
00001bd0  61 6e 79 20 6d 69 63 72  6f 2d 0d 63 6f 6d 70 75  |any micro-.compu|
00001be0  74 65 72 73 20 77 69 74  68 20 6f 6e 6c 79 20 73  |ters with only s|
00001bf0  65 76 65 6e 20 64 69 67  69 74 20 61 63 63 75 72  |even digit accur|
00001c00  61 63 79 2e 20 20 48 65  72 65 20 61 67 61 69 6e  |acy.  Here again|
00001c10  2c 20 47 0d 64 65 74 65  72 6d 69 6e 65 73 20 74  |, G.determines t|
00001c20  68 65 20 63 61 6c 65 6e  64 61 72 20 73 74 79 6c  |he calendar styl|
00001c30  65 2e 20 20 28 54 68 65  20 4d 65 65 75 73 20 62  |e.  (The Meeus b|
00001c40  6f 6f 6b 20 61 6c 73 6f  20 64 65 73 63 72 69 62  |ook also describ|
00001c50  65 73 0d 74 68 65 20 69  6e 76 65 72 73 65 20 63  |es.the inverse c|
00001c60  61 6c 63 75 6c 61 74 69  6f 6e 2c 20 62 79 20 61  |alculation, by a|
00001c70  20 6d 65 74 68 6f 64 20  64 69 66 66 65 72 65 6e  | method differen|
00001c80  74 20 66 72 6f 6d 20 74  68 61 74 0d 64 65 73 63  |t from that.desc|
00001c90  72 69 62 65 64 20 68 65  72 65 20 62 75 74 20 69  |ribed here but i|
00001ca0  64 65 6e 74 69 63 61 6c  20 69 6e 20 72 65 73 75  |dentical in resu|
00001cb0  6c 74 2e 29 0d 0d 20 20  20 20 20 46 6f 72 20 65  |lt.)..     For e|
00001cc0  78 61 6d 70 6c 65 2c 20  63 6f 6e 73 69 64 65 72  |xample, consider|
00001cd0  20 74 68 65 20 67 65 6f  63 65 6e 74 72 69 63 20  | the geocentric |
00001ce0  63 6f 6e 6a 75 6e 63 74  69 6f 6e 20 6f 66 20 74  |conjunction of t|
00001cf0  68 65 20 53 75 6e 0d 61  6e 64 20 4d 6f 6f 6e 20  |he Sun.and Moon |
00001d00  74 68 69 73 20 6d 6f 6e  74 68 2e 20 20 49 74 20  |this month.  It |
00001d10  6f 63 63 75 72 73 20 61  74 20 31 36 3a 35 32 3a  |occurs at 16:52:|
00001d20  33 39 20 55 54 20 6f 6e  20 4d 61 79 20 33 30 74  |39 UT on May 30t|
00001d30  68 2c 20 73 6f 0d 74 68  65 20 64 61 79 20 69 73  |h, so.the day is|
00001d40  20 65 78 70 72 65 73 73  65 64 20 64 65 63 69 6d  | expressed decim|
00001d50  61 6c 6c 79 20 61 73 20  33 30 2e 37 30 33 32 33  |ally as 30.70323|
00001d60  20 61 6e 64 20 74 68 65  20 64 69 61 6c 6f 67 75  | and the dialogu|
00001d70  65 20 72 75 6e 73 3a 0d  0d 20 20 20 3e 52 55 4e  |e runs:..   >RUN|
00001d80  20 22 43 41 4c 4a 44 22  0d 20 20 20 59 2c 4d 2c  | "CALJD".   Y,M,|
00001d90  44 20 3f 20 31 39 38 34  2c 20 35 2c 20 33 30 2e  |D ? 1984, 5, 30.|
00001da0  37 30 33 32 33 0d 20 20  20 4a 43 20 28 30 29 20  |70323.   JC (0) |
00001db0  4f 52 20 47 43 20 28 31  29 20 3f 20 31 0d 20 20  |OR GC (1) ? 1.  |
00001dc0  20 4a 2e 44 2e 3a 20 20  32 34 34 35 38 35 31 20  | J.D.:  2445851 |
00001dd0  2e 32 30 33 32 33 0d 20  20 20 52 45 41 44 59 0d  |.20323.   READY.|
00001de0  0d 20 20 20 3e 52 55 4e  20 22 4a 44 43 41 4c 22  |.   >RUN "JDCAL"|
00001df0  0d 20 20 20 4a 2c 46 20  3f 20 32 34 34 35 38 35  |.   J,F ? 244585|
00001e00  31 2c 20 2e 32 30 33 32  33 0d 20 20 20 4a 43 20  |1, .20323.   JC |
00001e10  28 30 29 20 4f 52 20 47  43 20 28 31 29 20 3f 20  |(0) OR GC (1) ? |
00001e20  31 0d 20 20 20 44 41 54  45 3a 20 20 31 39 38 34  |1.   DATE:  1984|
00001e30  20 20 35 20 20 33 30 2e  37 30 33 32 33 0d 20 20  |  5  30.70323.  |
00001e40  20 52 45 41 44 59 0d 0d  20 20 20 20 20 46 75 74  | READY..     Fut|
00001e50  75 72 65 20 70 72 6f 67  72 61 6d 20 6c 69 73 74  |ure program list|
00001e60  69 6e 67 73 20 69 6e 20  74 68 69 73 20 64 65 70  |ings in this dep|
00001e70  61 72 74 6d 65 6e 74 20  77 69 6c 6c 20 6f 66 74  |artment will oft|
00001e80  65 6e 20 6d 61 6b 65 0d  75 73 65 20 6f 66 20 74  |en make.use of t|
00001e90  68 65 20 4a 75 6c 69 61  6e 20 44 61 79 20 6e 75  |he Julian Day nu|
00001ea0  6d 62 65 72 20 61 6e 64  20 66 72 61 63 74 69 6f  |mber and fractio|
00001eb0  6e 2c 20 73 6f 20 72 65  61 64 65 72 73 20 6d 61  |n, so readers ma|
00001ec0  79 20 77 69 73 68 0d 74  6f 20 72 65 77 72 69 74  |y wish.to rewrit|
00001ed0  65 20 74 68 65 73 65 20  6c 69 73 74 69 6e 67 73  |e these listings|
00001ee0  20 61 73 20 73 75 62 72  6f 75 74 69 6e 65 73 2e  | as subroutines.|
00001ef0  20 20 41 66 74 65 72 20  72 65 70 6c 61 63 69 6e  |  After replacin|
00001f00  67 20 65 61 63 68 0d 45  4e 44 20 73 74 61 74 65  |g each.END state|
00001f10  6d 65 6e 74 20 77 69 74  68 20 52 45 54 55 52 4e  |ment with RETURN|
00001f20  2c 20 79 6f 75 20 63 61  6e 20 73 69 6d 70 6c 79  |, you can simply|
00001f30  20 69 6e 73 65 72 74 20  74 68 65 6d 20 62 6f 64  | insert them bod|
00001f40  69 6c 79 0d 69 6e 74 6f  20 6f 74 68 65 72 20 70  |ily.into other p|
00001f50  72 6f 67 72 61 6d 73 2e  0d 0d 20 20 20 20 20 42  |rograms...     B|
00001f60  6f 74 68 20 6c 69 73 74  69 6e 67 73 20 68 61 76  |oth listings hav|
00001f70  65 20 62 65 65 6e 20 74  68 6f 72 6f 75 67 68 6c  |e been thoroughl|
00001f80  79 20 74 65 73 74 65 64  20 61 74 20 53 6b 79 20  |y tested at Sky |
00001f90  26 0d 54 65 6c 65 73 63  6f 70 65 20 6f 6e 20 6d  |&.Telescope on m|
00001fa0  61 6e 79 20 6d 69 63 72  6f 63 6f 6d 70 75 74 65  |any microcompute|
00001fb0  72 73 2c 20 66 6f 72 20  74 68 65 20 79 65 61 72  |rs, for the year|
00001fc0  73 20 2d 34 37 31 32 20  74 68 72 6f 75 67 68 20  |s -4712 through |
00001fd0  74 6f 0d 2b 33 35 30 30  20 69 6e 20 62 6f 74 68  |to.+3500 in both|
00001fe0  20 74 68 65 20 47 72 65  67 6f 72 69 61 6e 20 61  | the Gregorian a|
00001ff0  6e 64 20 4a 75 6c 69 61  6e 20 63 61 6c 65 6e 64  |nd Julian calend|
00002000  61 72 73 2e 20 20 42 75  74 20 69 74 27 73 0d 77  |ars.  But it's.w|
00002010  69 73 65 2c 20 77 68 65  6e 20 74 72 79 69 6e 67  |ise, when trying|
00002020  20 6f 75 74 20 74 68 65  20 70 72 6f 67 72 61 6d  | out the program|
00002030  73 20 6f 6e 20 79 6f 75  72 20 6f 77 6e 20 6d 61  |s on your own ma|
00002040  63 68 69 6e 65 2c 20 74  6f 0d 76 65 72 69 66 79  |chine, to.verify|
00002050  20 74 68 65 20 72 65 73  75 6c 74 73 20 6f 6e 20  | the results on |
00002060  73 6f 6d 65 20 6b 6e 6f  77 6e 20 65 71 75 69 76  |some known equiv|
00002070  61 6c 65 6e 74 73 3a 0d  0d 20 20 20 20 20 20 4a  |alents:..      J|
00002080  75 6c 69 61 6e 20 43 61  6c 2e 20 20 20 20 20 20  |ulian Cal.      |
00002090  20 20 20 47 72 65 67 6f  72 69 61 6e 20 43 61 6c  |   Gregorian Cal|
000020a0  2e 20 20 20 20 20 20 4a  75 6c 69 61 6e 20 44 61  |.      Julian Da|
000020b0  74 65 0d 0d 20 20 20 20  2d 34 37 31 32 20 4a 61  |te..    -4712 Ja|
000020c0  6e 2e 20 20 31 2e 35 20  20 20 20 20 20 2d 34 37  |n.  1.5      -47|
000020d0  31 33 20 4e 6f 76 2e 20  32 34 2e 35 20 20 20 20  |13 Nov. 24.5    |
000020e0  20 20 20 20 20 20 20 20  20 30 2e 30 0d 20 20 20  |         0.0.   |
000020f0  20 2d 32 30 30 30 20 4a  61 6e 2e 20 20 31 2e 30  | -2000 Jan.  1.0|
00002100  20 20 20 20 20 20 2d 32  30 30 31 20 44 65 63 2e  |      -2001 Dec.|
00002110  20 31 35 2e 30 20 20 20  20 20 20 20 20 39 39 30  | 15.0        990|
00002120  35 35 37 2e 35 0d 20 20  20 20 20 2d 35 38 34 20  |557.5.     -584 |
00002130  4d 61 79 20 20 32 38 2e  36 20 20 20 20 20 20 20  |May  28.6       |
00002140  2d 35 38 34 20 4d 61 79  20 20 32 32 2e 36 20 20  |-584 May  22.6  |
00002150  20 20 20 20 20 31 35 30  37 39 30 30 2e 31 0d 20  |     1507900.1. |
00002160  20 20 20 20 2b 32 30 30  20 4d 61 72 2e 20 20 31  |    +200 Mar.  1|
00002170  2e 30 20 20 20 20 20 20  20 2b 32 30 30 20 4d 61  |.0       +200 Ma|
00002180  72 2e 20 20 31 2e 30 20  20 20 20 20 20 20 31 37  |r.  1.0       17|
00002190  39 34 31 36 37 2e 35 0d  20 20 20 20 2b 31 39 38  |94167.5.    +198|
000021a0  34 20 46 65 62 2e 20 31  36 2e 32 20 20 20 20 20  |4 Feb. 16.2     |
000021b0  20 2b 31 39 38 34 20 46  65 62 2e 20 32 39 2e 32  | +1984 Feb. 29.2|
000021c0  20 20 20 20 20 20 20 32  34 34 35 37 35 39 2e 37  |       2445759.7|
000021d0  0d 20 20 20 20 2b 31 39  39 39 20 44 65 63 2e 20  |.    +1999 Dec. |
000021e0  31 39 2e 35 20 20 20 20  20 20 2b 32 30 30 30 20  |19.5      +2000 |
000021f0  4a 61 6e 2e 20 20 31 2e  35 20 20 20 20 20 20 20  |Jan.  1.5       |
00002200  32 34 35 31 35 34 35 2e  30 0d 20 20 20 20 2b 33  |2451545.0.    +3|
00002210  30 30 30 20 46 65 62 2e  20 32 39 2e 39 20 20 20  |000 Feb. 29.9   |
00002220  20 20 20 2b 33 30 30 30  20 4d 61 72 2e 20 32 31  |   +3000 Mar. 21|
00002230  2e 39 20 20 20 20 20 20  20 32 38 31 36 38 36 37  |.9       2816867|
00002240  2e 34 0d 0d 20 20 20 20  20 4d 61 6e 79 20 61 6e  |.4..     Many an|
00002250  63 69 65 6e 74 20 63 61  6c 65 6e 64 61 72 73 20  |cient calendars |
00002260  68 61 76 65 20 62 65 65  6e 20 6c 69 6e 6b 65 64  |have been linked|
00002270  20 62 79 20 4a 75 6c 69  61 6e 20 44 61 79 0d 6e  | by Julian Day.n|
00002280  75 6d 62 65 72 20 69 6e  20 4f 2e 4c 2e 48 61 72  |umber in O.L.Har|
00002290  76 65 79 27 73 20 6e 65  77 20 62 6f 6f 6b 6c 65  |vey's new bookle|
000022a0  74 2c 20 43 61 6c 65 6e  64 61 72 20 43 6f 6e 76  |t, Calendar Conv|
000022b0  65 72 73 69 6f 6e 73 0d  28 41 6d 65 72 69 63 61  |ersions.(America|
000022c0  6e 20 50 68 69 6c 6f 73  6f 70 68 69 63 61 6c 20  |n Philosophical |
000022d0  53 6f 63 69 65 74 79 2c  20 31 39 38 33 29 2e 20  |Society, 1983). |
000022e0  20 48 65 20 61 6c 73 6f  20 6d 65 6e 74 69 6f 6e  | He also mention|
000022f0  73 20 74 77 6f 0d 75 73  65 66 75 6c 20 74 72 69  |s two.useful tri|
00002300  63 6b 73 20 77 69 74 68  20 74 68 65 73 65 20 6e  |cks with these n|
00002310  75 6d 62 65 72 73 2e 20  20 54 6f 20 66 69 6e 64  |umbers.  To find|
00002320  20 74 68 65 20 64 61 79  20 6f 66 20 74 68 65 20  | the day of the |
00002330  77 65 65 6b 0d 61 74 20  6e 6f 6f 6e 20 77 68 65  |week.at noon whe|
00002340  6e 20 65 61 63 68 20 4a  75 6c 69 61 6e 20 44 61  |n each Julian Da|
00002350  79 20 6e 75 6d 62 65 72  20 62 65 67 69 6e 73 2c  |y number begins,|
00002360  20 64 69 76 69 64 65 20  74 68 65 20 77 68 6f 6c  | divide the whol|
00002370  65 0d 6e 75 6d 62 65 72  20 62 79 20 37 3b 20 61  |e.number by 7; a|
00002380  20 72 65 6d 61 69 6e 64  65 72 20 6f 66 20 30 20  | remainder of 0 |
00002390  6d 65 61 6e 73 20 4d 6f  6e 64 61 79 2c 20 31 20  |means Monday, 1 |
000023a0  54 75 65 73 64 61 79 2c  20 61 6e 64 20 73 6f 0d  |Tuesday, and so.|
000023b0  6f 6e 2c 20 74 68 72 6f  75 67 68 20 74 6f 20 36  |on, through to 6|
000023c0  20 66 6f 72 20 53 75 6e  64 61 79 2e 20 20 46 75  | for Sunday.  Fu|
000023d0  72 74 68 65 72 6d 6f 72  65 2c 20 74 68 65 20 4d  |rthermore, the M|
000023e0  6f 6f 6e 20 69 73 20 77  69 74 68 69 6e 20 61 0d  |oon is within a.|
000023f0  64 61 79 20 6f 72 20 73  6f 20 6f 66 20 6e 65 77  |day or so of new|
00002400  20 6f 6e 20 74 68 6f 73  65 20 64 61 79 73 20 77  | on those days w|
00002410  68 65 6e 20 74 68 65 20  4a 75 6c 69 61 6e 20 44  |hen the Julian D|
00002420  61 79 20 6e 75 6d 62 65  72 2c 0d 64 69 76 69 64  |ay number,.divid|
00002430  65 64 20 62 79 20 32 39  2e 35 33 30 35 38 38 2c  |ed by 29.530588,|
00002440  20 79 69 65 6c 64 73 20  2e 33 33 20 61 73 20 74  | yields .33 as t|
00002450  68 65 20 66 72 61 63 74  69 6f 6e 61 6c 20 70 61  |he fractional pa|
00002460  72 74 2e 0d 0d 20 20 20  20 20 50 72 69 6f 72 20  |rt...     Prior |
00002470  74 6f 20 31 39 32 35 2c  20 61 73 74 72 6f 6e 6f  |to 1925, astrono|
00002480  6d 65 72 73 20 61 63 74  75 61 6c 6c 79 20 63 6f  |mers actually co|
00002490  6e 73 69 64 65 72 65 64  20 65 61 63 68 20 6e 65  |nsidered each ne|
000024a0  77 0d 63 61 6c 65 6e 64  61 72 20 64 61 74 65 20  |w.calendar date |
000024b0  74 6f 20 63 6f 6d 6d 65  6e 63 65 20 61 74 20 6e  |to commence at n|
000024c0  6f 6f 6e 20 6f 6e 20 74  68 65 20 63 6f 72 72 65  |oon on the corre|
000024d0  73 70 6f 6e 64 69 6e 67  20 63 69 76 69 6c 0d 64  |sponding civil.d|
000024e0  61 74 65 2e 20 20 42 75  74 20 6f 75 72 20 70 72  |ate.  But our pr|
000024f0  6f 67 72 61 6d 73 20 75  73 65 20 74 68 65 20 6d  |ograms use the m|
00002500  6f 64 65 72 6e 20 63 6f  6e 76 65 6e 74 69 6f 6e  |odern convention|
00002510  20 61 73 20 74 6f 20 77  68 65 6e 20 61 0d 63 61  | as to when a.ca|
00002520  6c 65 6e 64 61 72 20 64  61 79 20 62 65 67 69 6e  |lendar day begin|
00002530  73 2c 20 65 76 65 6e 20  66 6f 72 20 64 61 74 65  |s, even for date|
00002540  73 20 62 65 66 6f 72 65  20 31 39 32 35 2e 20 20  |s before 1925.  |
00002550  4e 65 76 65 72 74 68 65  6c 65 73 73 2c 0d 69 74  |Nevertheless,.it|
00002560  20 69 73 20 77 65 6c 6c  20 74 6f 20 72 65 6d 65  | is well to reme|
00002570  6d 62 65 72 20 74 68 69  73 20 63 68 61 6e 67 65  |mber this change|
00002580  20 69 6e 20 75 73 61 67  65 20 77 68 65 6e 20 63  | in usage when c|
00002590  6f 6e 73 75 6c 74 69 6e  67 0d 65 61 72 6c 79 20  |onsulting.early |
000025a0  61 73 74 72 6f 6e 6f 6d  69 63 61 6c 20 73 6f 75  |astronomical sou|
000025b0  72 63 65 73 2e 0d 0d 20  20 20 20 20 41 6c 73 6f  |rces...     Also|
000025c0  20 62 65 77 61 72 65 20  74 68 65 20 22 4d 6f 64  | beware the "Mod|
000025d0  69 66 69 65 64 20 4a 75  6c 69 61 6e 20 44 61 74  |ified Julian Dat|
000025e0  65 22 20 28 4d 4a 44 29  2c 20 64 65 66 69 6e 65  |e" (MJD), define|
000025f0  64 20 61 73 0d 74 68 65  20 74 72 75 65 20 4a 44  |d as.the true JD|
00002600  20 6d 69 6e 75 73 20 32  2c 34 30 30 2c 30 30 30  | minus 2,400,000|
00002610  2e 35 2c 20 61 6e 64 20  73 6f 6d 65 74 69 6d 65  |.5, and sometime|
00002620  73 20 61 64 76 6f 63 61  74 65 64 20 74 6f 20 68  |s advocated to h|
00002630  65 6c 70 0d 70 72 65 73  65 72 76 65 20 64 69 67  |elp.preserve dig|
00002640  69 74 73 20 69 6e 20 6d  61 63 68 69 6e 65 73 20  |its in machines |
00002650  6f 66 20 6c 69 6d 69 74  65 64 20 70 72 65 63 69  |of limited preci|
00002660  73 69 6f 6e 2e 20 20 49  6e 20 72 65 61 6c 69 74  |sion.  In realit|
00002670  79 2c 0d 73 69 6e 63 65  20 74 68 65 20 66 69 72  |y,.since the fir|
00002680  73 74 20 74 77 6f 20 64  69 67 69 74 73 20 6f 66  |st two digits of|
00002690  20 74 68 65 20 4a 44 20  68 61 76 65 20 62 65 65  | the JD have bee|
000026a0  6e 20 32 34 20 6f 6e 6c  79 20 73 69 6e 63 65 0d  |n 24 only since.|
000026b0  31 38 35 39 2c 20 74 68  65 20 64 65 76 69 63 65  |1859, the device|
000026c0  20 69 73 20 75 73 65 66  75 6c 20 6f 6e 6c 79 20  | is useful only |
000026d0  66 72 6f 6d 20 61 20 6e  61 72 72 6f 77 20 6d 6f  |from a narrow mo|
000026e0  64 65 72 6e 0d 70 65 72  73 70 65 63 74 69 76 65  |dern.perspective|
000026f0  2e 20 20 4d 6f 72 65 20  61 6c 61 72 6d 69 6e 67  |.  More alarming|
00002700  2c 20 74 68 6f 75 67 68  2c 20 69 73 20 74 68 65  |, though, is the|
00002710  20 64 61 6e 67 65 72 20  6f 66 20 63 6f 6e 66 75  | danger of confu|
00002720  73 69 6f 6e 0d 69 6e 74  72 6f 64 75 63 65 64 20  |sion.introduced |
00002730  62 79 20 74 68 65 20 2e  35 20 28 69 6e 74 65 6e  |by the .5 (inten|
00002740  64 65 64 20 74 6f 20 6d  61 6b 65 20 74 68 65 20  |ded to make the |
00002750  4d 4a 44 20 62 65 67 69  6e 20 77 68 65 6e 20 74  |MJD begin when t|
00002760  68 65 0d 63 69 76 69 6c  20 64 61 79 20 64 6f 65  |he.civil day doe|
00002770  73 29 2e 0d 0d 20 20 20  20 20 54 68 65 20 63 6f  |s)...     The co|
00002780  65 78 69 73 74 65 6e 63  65 20 6f 66 20 74 68 69  |existence of thi|
00002790  73 20 77 69 74 68 20 61  6e 6f 74 68 65 72 20 63  |s with another c|
000027a0  6f 6d 6d 6f 6e 20 64 65  76 69 63 65 2c 20 74 68  |ommon device, th|
000027b0  61 74 20 6f 66 0d 73 69  6d 70 6c 79 20 6c 6f 70  |at of.simply lop|
000027c0  70 69 6e 67 20 6f 66 66  20 74 68 65 20 68 69 67  |ping off the hig|
000027d0  68 65 73 74 20 66 65 77  20 64 69 67 69 74 73 20  |hest few digits |
000027e0  6f 66 20 74 68 65 20 4a  44 2c 20 68 61 73 20 6f  |of the JD, has o|
000027f0  66 74 65 6e 0d 6c 65 64  20 74 6f 20 61 20 63 6f  |ften.led to a co|
00002800  6e 66 75 73 69 6f 6e 20  6f 66 20 31 32 20 68 6f  |nfusion of 12 ho|
00002810  75 72 73 20 69 6e 20 74  68 65 20 61 73 74 72 6f  |urs in the astro|
00002820  6e 6f 6d 69 63 61 6c 20  6c 69 74 65 72 61 74 75  |nomical literatu|
00002830  72 65 2e 0d 54 68 65 20  70 72 61 63 74 69 63 65  |re..The practice|
00002840  20 6f 66 20 61 64 6a 75  73 74 69 6e 67 20 74 68  | of adjusting th|
00002850  65 20 4a 44 20 62 79 20  73 6f 6d 65 20 63 6f 6e  |e JD by some con|
00002860  73 74 61 6e 74 20 77 61  73 20 6f 6e 63 65 0d 64  |stant was once.d|
00002870  65 73 63 72 69 62 65 64  20 62 79 20 74 68 65 20  |escribed by the |
00002880  6c 61 74 65 20 50 61 75  6c 20 48 65 72 67 65 74  |late Paul Herget|
00002890  20 61 73 20 22 61 6e 20  61 74 74 65 6d 70 74 20  | as "an attempt |
000028a0  74 6f 20 70 65 72 76 65  72 74 20 74 68 65 0d 65  |to pervert the.e|
000028b0  73 74 61 62 6c 69 73 68  65 64 20 73 79 73 74 65  |stablished syste|
000028c0  6d 22 20 6f 66 20 61 73  74 72 6f 6e 6f 6d 69 63  |m" of astronomic|
000028d0  61 6c 20 72 65 63 6b 6f  6e 69 6e 67 2e 20 20 46  |al reckoning.  F|
000028e0  61 72 20 62 65 74 74 65  72 20 6e 6f 74 0d 74 6f  |ar better not.to|
000028f0  20 74 69 6e 6b 65 72 20  77 69 74 68 20 69 74 2c  | tinker with it,|
00002900  20 61 6e 64 20 6c 65 74  20 6f 75 72 20 6d 61 63  | and let our mac|
00002910  68 69 6e 65 73 20 77 6f  72 72 79 20 61 62 6f 75  |hines worry abou|
00002920  74 20 74 68 65 20 64 65  74 61 69 6c 73 21 0d 0d  |t the details!..|
00002930  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
*
00002960  52 4f 47 45 52 20 57 2e  20 53 49 4e 4e 4f 54 54  |ROGER W. SINNOTT|
00002970  0d 0d 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |..              |
00002980  20 20 20 20 20 20 20 20  20 20 20 2d 2d 2d 2d 2d  |           -----|
00002990  6f 4f 6f 2d 2d 2d 2d 2d  0d 0d 0d 46 72 6f 6d 20  |oOo-----...From |
000029a0  74 68 65 20 53 65 70 74  65 6d 62 65 72 20 31 39  |the September 19|
000029b0  38 34 20 69 73 73 75 65  20 6f 66 20 53 6b 79 20  |84 issue of Sky |
000029c0  26 20 54 65 6c 65 73 63  6f 70 65 2c 20 70 61 67  |& Telescope, pag|
000029d0  65 20 32 35 35 2e 2e 2e  0d 0d 20 20 20 20 20 4d  |e 255.....     M|
000029e0  69 6c 6f 20 4c 2e 20 48  75 72 6c 65 79 2c 20 4a  |ilo L. Hurley, J|
000029f0  72 2e 2c 20 6f 66 20 41  75 72 6f 72 61 2c 20 43  |r., of Aurora, C|
00002a00  6f 6c 6f 72 61 64 6f 2c  20 77 72 69 74 65 73 20  |olorado, writes |
00002a10  74 68 61 74 20 6f 75 72  0d 70 72 6f 67 72 61 6d  |that our.program|
00002a20  20 66 6f 72 20 63 6f 6d  70 75 74 69 6e 67 20 74  | for computing t|
00002a30  68 65 20 4a 75 6c 69 61  6e 20 64 61 74 65 20 66  |he Julian date f|
00002a40  72 6f 6d 20 74 68 65 20  63 61 6c 65 6e 64 61 72  |rom the calendar|
00002a50  20 64 61 74 65 0d 28 4c  69 73 74 69 6e 67 20 31  | date.(Listing 1|
00002a60  20 69 6e 20 74 68 65 20  4d 61 79 20 69 73 73 75  | in the May issu|
00002a70  65 2c 20 70 61 67 65 20  34 35 35 29 20 64 6f 65  |e, page 455) doe|
00002a80  73 20 6e 6f 74 20 72 75  6e 20 70 72 6f 70 65 72  |s not run proper|
00002a90  6c 79 20 66 6f 72 0d 6e  65 67 61 74 69 76 65 20  |ly for.negative |
00002aa0  79 65 61 72 73 20 77 68  65 6e 20 77 72 69 74 74  |years when writt|
00002ab0  65 6e 20 69 6e 20 44 69  67 69 74 61 6c 20 52 65  |en in Digital Re|
00002ac0  73 65 61 72 63 68 27 73  20 43 42 41 53 49 43 20  |search's CBASIC |
00002ad0  66 6f 72 20 68 69 73 0d  41 6c 74 6f 73 20 63 6f  |for his.Altos co|
00002ae0  6d 70 75 74 65 72 2e 0d  0d 20 20 20 20 20 48 65  |mputer...     He|
00002af0  20 68 61 73 20 74 72 61  63 65 64 20 74 68 65 20  | has traced the |
00002b00  70 72 6f 62 6c 65 6d 20  74 6f 20 74 68 65 20 49  |problem to the I|
00002b10  4e 54 20 66 75 6e 63 74  69 6f 6e 2c 20 77 68 69  |NT function, whi|
00002b20  63 68 20 74 61 6b 65 73  0d 74 68 65 20 69 6e 74  |ch takes.the int|
00002b30  65 67 65 72 20 70 61 72  74 20 6f 66 20 61 20 6e  |eger part of a n|
00002b40  75 6d 62 65 72 2e 20 20  49 6e 20 43 42 41 53 49  |umber.  In CBASI|
00002b50  43 20 28 61 73 20 6f 6e  20 6d 61 6e 79 20 70 6f  |C (as on many po|
00002b60  63 6b 65 74 0d 63 61 6c  63 75 6c 61 74 6f 72 73  |cket.calculators|
00002b70  29 2c 20 74 68 65 20 69  6e 74 65 67 65 72 20 70  |), the integer p|
00002b80  61 72 74 20 6f 66 20 61  20 6e 65 67 61 74 69 76  |art of a negativ|
00002b90  65 20 6e 75 6d 62 65 72  20 69 73 20 6f 62 74 61  |e number is obta|
00002ba0  69 6e 65 64 0d 62 79 20  74 72 75 6e 63 61 74 69  |ined.by truncati|
00002bb0  6e 67 20 74 68 65 20 64  65 63 69 6d 61 6c 20 70  |ng the decimal p|
00002bc0  61 72 74 3b 20 74 68 75  73 2c 20 62 6f 74 68 20  |art; thus, both |
00002bd0  28 49 4e 54 2d 33 2e 32  29 20 61 6e 64 0d 49 4e  |(INT-3.2) and.IN|
00002be0  54 28 2d 33 2e 38 29 20  79 69 65 6c 64 20 2d 33  |T(-3.8) yield -3|
00002bf0  2e 20 20 49 6e 20 61 6c  6c 20 74 68 65 20 6f 74  |.  In all the ot|
00002c00  68 65 72 20 6d 69 63 72  6f 63 6f 6d 70 75 74 65  |her microcompute|
00002c10  72 20 42 61 73 69 63 73  20 77 65 27 76 65 0d 74  |r Basics we've.t|
00002c20  72 69 65 64 2c 20 74 68  65 20 61 6e 73 77 65 72  |ried, the answer|
00002c30  20 69 73 20 2d 34 20 69  6e 20 74 68 65 73 65 20  | is -4 in these |
00002c40  74 77 6f 20 63 61 73 65  73 2e 20 20 41 20 72 65  |two cases.  A re|
00002c50  6d 65 64 79 20 69 6e 20  43 42 41 53 49 43 0d 69  |medy in CBASIC.i|
00002c60  73 20 74 6f 20 73 65 74  20 75 70 20 61 20 75 73  |s to set up a us|
00002c70  65 72 2d 64 65 66 69 6e  65 64 20 66 75 6e 63 74  |er-defined funct|
00002c80  69 6f 6e 20 74 68 61 74  20 6d 69 6d 69 63 73 20  |ion that mimics |
00002c90  42 61 73 69 63 73 20 6f  66 20 74 68 65 0d 6f 74  |Basics of the.ot|
00002ca0  68 65 72 20 74 79 70 65  2c 20 61 6e 64 20 74 6f  |her type, and to|
00002cb0  20 73 75 62 73 74 69 74  75 74 65 20 74 68 69 73  | substitute this|
00002cc0  20 66 6f 72 20 49 4e 54  20 74 68 72 6f 75 67 68  | for INT through|
00002cd0  6f 75 74 20 74 68 65 0d  70 72 6f 67 72 61 6d 2e  |out the.program.|
00002ce0  0d 0d 20 20 20 20 20 54  68 65 20 42 61 73 69 63  |..     The Basic|
00002cf0  73 20 74 68 61 74 20 67  69 76 65 20 2d 34 20 61  |s that give -4 a|
00002d00  70 70 65 61 72 20 74 6f  20 62 65 20 74 68 65 20  |ppear to be the |
00002d10  63 6c 65 61 72 20 6d 61  6a 6f 72 69 74 79 2c 0d  |clear majority,.|
00002d20  61 6e 64 20 77 69 74 68  20 74 68 65 6d 20 74 68  |and with them th|
00002d30  65 20 63 61 6c 65 6e 64  61 72 20 70 72 6f 67 72  |e calendar progr|
00002d40  61 6d 20 77 6f 72 6b 73  20 77 69 74 68 6f 75 74  |am works without|
00002d50  20 6d 6f 64 69 66 69 63  61 74 69 6f 6e 2e 0d 54  | modification..T|
00002d60  68 65 73 65 20 69 6e 63  6c 75 64 65 20 74 68 65  |hese include the|
00002d70  20 4d 69 63 72 6f 73 6f  66 74 20 76 65 72 73 69  | Microsoft versi|
00002d80  6f 6e 73 20 72 75 6e 6e  69 6e 67 20 6f 6e 20 74  |ons running on t|
00002d90  68 65 20 41 70 70 6c 65  2c 20 52 61 64 69 6f 0d  |he Apple, Radio.|
00002da0  53 68 61 63 6b 2c 20 61  6e 64 20 4f 68 69 6f 20  |Shack, and Ohio |
00002db0  53 63 69 65 6e 74 69 66  69 63 20 6d 61 63 68 69  |Scientific machi|
00002dc0  6e 65 73 2c 20 61 6e 64  20 61 6c 73 6f 20 4e 6f  |nes, and also No|
00002dd0  72 74 68 20 53 74 61 72  2c 0d 44 69 67 69 74 61  |rth Star,.Digita|
00002de0  6c 20 45 71 75 69 70 6d  65 6e 74 2c 20 61 6e 64  |l Equipment, and|
00002df0  20 48 65 77 6c 65 74 74  2d 50 61 63 6b 61 72 64  | Hewlett-Packard|
00002e00  20 42 61 73 69 63 73 2e  0d 0d 0d 20 20 20 20 20  | Basics....     |
00002e10  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00002e20  20 20 20 20 2d 2d 2d 2d  2d 6f 4f 6f 2d 2d 2d 2d  |    -----oOo----|
00002e30  2d 0d 0d 45 6c 65 63 74  72 6f 6e 69 63 20 4e 65  |-..Electronic Ne|
00002e40  77 73 20 53 65 72 76 69  63 65 0d 0d 20 20 20 20  |ws Service..    |
00002e50  20 43 6f 6d 70 75 74 65  72 20 6f 77 6e 65 72 73  | Computer owners|
00002e60  20 77 69 74 68 20 6d 6f  64 65 6d 73 20 63 61 6e  | with modems can|
00002e70  20 6f 62 74 61 69 6e 20  66 61 73 74 20 6e 65 77  | obtain fast new|
00002e80  73 20 66 72 6f 6d 20 53  6b 79 20 26 0d 54 65 6c  |s from Sky &.Tel|
00002e90  65 73 63 6f 70 65 20 6f  66 20 63 6f 6d 65 74 20  |escope of comet |
00002ea0  61 6e 64 20 6e 6f 76 61  20 64 69 73 63 6f 76 65  |and nova discove|
00002eb0  72 69 65 73 2c 20 61 6e  64 20 61 6c 73 6f 20 70  |ries, and also p|
00002ec0  72 6f 67 72 61 6d 0d 6c  69 73 74 69 6e 67 73 20  |rogram.listings |
00002ed0  66 72 6f 6d 20 74 68 65  20 41 73 74 72 6f 6e 6f  |from the Astrono|
00002ee0  6d 69 63 61 6c 20 43 6f  6d 70 75 74 69 6e 67 20  |mical Computing |
00002ef0  44 65 70 61 72 74 6d 65  6e 74 2e 20 20 41 66 74  |Department.  Aft|
00002f00  65 72 0d 6a 6f 69 6e 69  6e 67 20 43 6f 6d 70 75  |er.joining Compu|
00002f10  53 65 72 76 65 20 28 74  68 72 6f 75 67 68 20 61  |Serve (through a|
00002f20  20 6c 6f 63 61 6c 20 52  61 64 69 6f 20 53 68 61  | local Radio Sha|
00002f30  63 6b 20 6f 72 20 63 6f  6d 70 75 74 65 72 0d 64  |ck or computer.d|
00002f40  65 61 6c 65 72 29 2c 20  6c 6f 67 20 6f 6e 20 61  |ealer), log on a|
00002f50  6e 64 20 6d 6f 76 65 20  74 6f 20 50 65 72 73 6f  |nd move to Perso|
00002f60  6e 61 6c 20 43 6f 6d 70  75 74 69 6e 67 20 61 6e  |nal Computing an|
00002f70  64 20 74 68 65 6e 20 74  68 65 0d 50 65 72 73 6f  |d then the.Perso|
00002f80  6e 61 6c 20 46 69 6c 65  20 41 72 65 61 2e 20 20  |nal File Area.  |
00002f90  4f 6e 63 65 20 74 68 65  72 65 2c 20 61 74 20 61  |Once there, at a|
00002fa0  6e 79 20 6d 65 6e 75 2c  20 74 79 70 65 20 52 20  |ny menu, type R |
00002fb0  41 43 43 45 53 53 0d 54  68 65 6e 20 61 74 20 74  |ACCESS.Then at t|
00002fc0  68 65 20 6e 65 78 74 20  6d 65 6e 75 20 74 79 70  |he next menu typ|
00002fd0  65 20 52 20 4e 45 57 53  2e 44 41 54 5b 37 30 32  |e R NEWS.DAT[702|
00002fe0  37 35 2c 31 32 35 5d 20  74 6f 20 72 65 63 65 69  |75,125] to recei|
00002ff0  76 65 20 74 68 69 73 0d  73 65 72 76 69 63 65 2e  |ve this.service.|
00003000  0d                                                |.|
00003001
CeeFax/JULIAN.m0
CeeFax/JULIAN.m1
CeeFax/JULIAN.m2
CeeFax/JULIAN.m4
CeeFax/JULIAN.m5