home *** CD-ROM | disk | FTP | other *** search
/ Unix System Administration Handbook 1997 October / usah_oct97.iso / index / julian.txt < prev    next >
Text File  |  1997-09-22  |  2KB  |  48 lines

  1. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  2. INDEX ENTRY FOR JULIAN:
  3. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  4.  
  5. Name: Julian - Computes Julian dates
  6.  
  7. Version: N/A
  8.  
  9. Author(s): Ian Miller <Ian_Miller@bifroest.demon.co.uk> (current maintainer)
  10.  
  11.    Henry F. Fliegel
  12.    Georgetown University Observatory
  13.    Washington DC
  14.  
  15.    Thomas C. Van Flandern
  16.    U.S. Naval Observatory
  17.    Washington DC
  18.  
  19. On the CD-ROM in: sysadm/julian.tar
  20.  
  21. Ftp source: N/A
  22.  
  23. Size on the CD: 20 KB (uncompressed)
  24.  
  25. Description:
  26.  
  27.    The simplest technique is probably to convert to a Julian Day
  28.    number and then take the result mod7. This has the advantage that
  29.    you can do a lot of other things with Julian Day number as well.
  30.    The best algorithm I know of was published as a letter from Henry
  31.    F Fliegel and Thomas C van Flandern in the October 1968 (vol 11
  32.    #10) issue of the  Communications of the ACM. 
  33.  
  34.    Julian Day Number = day - 32075 + 1461 * (year + 4800 - (14 - month)/12)/4 +
  35.       367 * (month - 2 + (14 - month)/12*12)/12 -
  36.       3 * ((year + 4900 - (14 - month)/12)/100)/4
  37.  
  38.    This is valid for all dates in the Gregorian Calendar up to 28 Feb
  39.    4000. (I have modified this algorithm slightly from the original
  40.    to avoid dividing negative numbers. The original only worked in
  41.    FORTRAN. The modified version should work in any language.) 
  42.  
  43.    -- Quoted from the README by Ian Miller
  44.  
  45. Advertised architectures: N/A
  46.    
  47. Prerequisites: C compiler or PERL
  48.