home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: InfoMgt / InfoMgt.zip / doy10.zip / DAYOYEAR.HLP (.txt) < prev    next >
OS/2 Help File  |  1996-01-07  |  8KB  |  115 lines

  1.  
  2. ΓòÉΓòÉΓòÉ 1. General Help ΓòÉΓòÉΓòÉ
  3.  
  4. This little program will calculate the day of the year (sometimes incorrectly 
  5. called a Julian date) when given a normal Gregorian date and likewise, the 
  6. reverse is also true. Like most utilities, it was born of necessity. I have 
  7. tried to make the interface intuitive and simple; while during the process, I 
  8. learned more than I wanted to know about calendars. Also, in the spirit of 
  9. those wonderful people at the Free Software Foundation (yes, the long haired 
  10. "Power to the people", red-eyed, techno-nerd types STILL lives and breath in 
  11. these insane and chaotic times), the program is freeware with only the standard 
  12. caveats. I can only find one semi-kind of bug. If you find any more, drop me a 
  13. line and I'll try to fix it in my all too little spare time. 
  14.  
  15. Bob Ross 
  16. h2ordr@vnet.net 
  17.  
  18.  
  19. ΓòÉΓòÉΓòÉ 2. Why this program exists ΓòÉΓòÉΓòÉ
  20.  
  21. Maybe some of you, like myself, still earn our beer money by trying to tame 
  22. dinosaurs such as MVS. I found that in this world of quantum physics and Dick 
  23. Tracy watches, there was still a need to know the day of the year. 
  24.  
  25. I watched as people scrambled, trying to find a calendar that still had the day 
  26. of the year printed on it so they could find out when the retention period of 
  27. their tapes, that had such precious data on it, would expire and be lost 
  28. forever. Thinking that the personal computers that sit on every desk in every 
  29. office should be able to handle this small task, I searched the internet trying 
  30. to find such a program, and to my amazement, I found none that fit the bill. I 
  31. was somewhat stunned. 
  32.  
  33. I had been looking to write some OS/2 code, but everything that I wanted seemed 
  34. to be already written by someone else. So, running on four hours sleep, instead 
  35. of six, I knocked this thing off in a few days and I pass it on for your 
  36. amusement. 
  37.  
  38. I bet that if you are reading this, we are the only two people in the whole 
  39. world that are using it ;-) 
  40.  
  41.  
  42. ΓòÉΓòÉΓòÉ 3. Getting it to work ΓòÉΓòÉΓòÉ
  43.  
  44. Simply enter the 4 digit year in the YYYY box and then either the day of the 
  45. year in the DDD box to have the program calculate the Gregorian date, or the 
  46. numeric month and day in the the MM and DD boxes to have it calculate the day 
  47. of the year. For you Boolean freaks, that's (YYYY AND (DDD OR MMDD)). Then just 
  48. press Convert. 
  49.  
  50. You can move around the panel using the TAB key or, of course, the mouse; and 
  51. the cursor will auto-tab if you fill in the box completely (such as typing in 
  52. 01 for the month). 
  53.  
  54. Note:  The program first looks for a valid year, then checks for anything in 
  55.        the DDD field, then the month and day fields. This means that if you are 
  56.        trying to enter a month and day, you better clear the DDD field to get 
  57.        the result you expect. 
  58.  
  59.  
  60. ΓòÉΓòÉΓòÉ 4. Calendar trivia ΓòÉΓòÉΓòÉ
  61.  
  62. This section could be called "Two Old Dead Guys" as you'll see later. 
  63.  
  64. While the Sumerians of Babylonia were probably the first to make a calendar 
  65. based on the seasons and the phases of the moon (with 12 lunar months as a 
  66. year), we skip ahead to the Romans. Their calendar was 355 days long with 
  67. March, May, July, and October having 31 days, February having 28, and the rest 
  68. having 29. They would add an extra month every fourth year to try and keep 
  69. everything ship shape. 
  70.  
  71. The high priest would regulate the calendar, but performed this function so 
  72. poorly that by Julius Caesar's time the summer months were falling in the 
  73. spring. Caesar corrected this in 46 BC of the Julian calendar and adopted the 
  74. plan of Egyptian astronomer Sosigenes; a 365 day year with an extra day thrown 
  75. in during the fourth year. He distributed the extra 10 days amongst the 29 day 
  76. months to create those months like we know them today. 
  77.  
  78. Well, old Caesar's calendar was just a tad too long and things still got out of 
  79. whack. So, in walks Pope Gregory XIII with a decree that ten days be dropped 
  80. from the calendar and that three times in 400 years, the leap year thing should 
  81. not count. To get everything synced up, he had October 15, 1582 follow October 
  82. 4, leaving those days in between in limbo. 
  83.  
  84. While the Roman Catholic countries were marching to this Gregorian thing, 
  85. others went along with the Julian method until relatively recent times. England 
  86. didn't adopt the Gregorian calendar until 1752 (causing 11 days to be dropped 
  87. into limbo) and the Chinese didn't get on board until 1912. 
  88.  
  89. This program is siding with the Queen, and performs calculations back to 1753 
  90. and goes forward to the year 9999 (it appears that no one has figured out what 
  91. to do with the year 4000; is it a leap year or not?). 
  92.  
  93.  
  94. ΓòÉΓòÉΓòÉ 5. The legal stuff ΓòÉΓòÉΓòÉ
  95.  
  96. Day of the Year Calculator 
  97. Copyright (C) 1995  Bob Ross 
  98.  
  99. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE 
  100. PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE 
  101. STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE 
  102. PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, 
  103. INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND 
  104. FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND 
  105. PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, 
  106. YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 
  107.  
  108.  
  109. ΓòÉΓòÉΓòÉ 6. Bug Report ΓòÉΓòÉΓòÉ
  110.  
  111. Bug Report V1.0 
  112.  
  113.      The program will accept a "leap date" (February 29) in a non-leap year, 
  114.      but it will compensate and still give the correct results. 
  115.