home *** CD-ROM | disk | FTP | other *** search
/ GEMini Atari / GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso / files / acc / calendar / cal14fr.doc < prev    next >
Encoding:
Text File  |  1990-02-27  |  3.1 KB  |  60 lines

  1.                          CAL14: Calendar v1.4
  2.                         (c)1990 by Bill Aycock
  3.  
  4. Why write yet another calendar program?  Well, why not?  None of the other
  5. calendar ACCs I've seen highlight the current date on a mono monitor, and
  6. since I tend to lose track of the day as well as the date that could be handy
  7. to know.  Anyway, it struck me as an interesting project, so here it is.  It
  8. runs on any ST in any resolution, and can be run as either a program or a
  9. desk accessory simply by renaming the file.
  10.  
  11. Cal is really simple to use.  When it first runs, it displays a calendar of
  12. the current month.  The current date is shown in inverse.  (Of course if your
  13. ST's clock isn't set correctly, this won't _really_ be the current month, but
  14. Cal will think so.)  The box to the right of the calendar shows which month
  15. and year are displayed.  If you're looking at today, there will be two small
  16. numbers above the month name; the one on the left shows which day of the year
  17. this is, and the one on the right shows how many days are left in the year.
  18.  
  19. Under the month/year display are three buttons: "next year", "this year",
  20. and "prev year".  Obviously, click the next-year button to move the display
  21. forward one year, click the prev-year button to go back a year, or click the
  22. this-year button to move to the current year.  If you double click one of
  23. these buttons, you move ten years at a time.  If you double click this-year,
  24. Cal will show the current month of the current year.
  25.  
  26. There are also two "invisible" buttons in this area.  Click directly above
  27. the "next year" button, and you can jump 100 years at a time; click under
  28. "prev year" to jump back 100 years.  Double clicking one of these buttons
  29. moves you a thousand years.
  30.  
  31. Under all this is a row of twelve month buttons.  Click on a button and Cal
  32. will show you that month in whatever year you're showing.  You can double
  33. click the month buttons, too, which makes Cal display that month in the
  34. current year.
  35.  
  36. You can also click on one of the days in the month you're showing.  You'll
  37. see a box that tells you which day of the year it is and how many days are
  38. left in the year.
  39.  
  40. That's about it.  There shouldn't be any really horrible bugs involved.
  41. And as far as I know, Cal is accurate for any reasonable date (though I've
  42. only checked it back as far as Christmas of 1900 (a Tuesday), and haven't
  43. checked forward very far).  The day-of-week algorithm I used is modified from
  44. a Mac Pascal program by Buck Donham; that program credits the book "Practical
  45. Astronomy With Your Calculator", written by Peter Duffett-Smith, Cambridge
  46. University Press, 1981.  I suppose it should work back to 1584, when the
  47. modern calendar was invented... anyone have any _really_ old calendars you
  48. can check it with?
  49.  
  50. Cal was written in 100% assembly language with DevpacST, and the resource
  51. was done with WERCS (both from MichTron).  Thanks to Ron Hunt for ideas and
  52. feedback, and special thanks to Eric Tremblay for his assistance with the
  53. French version.
  54.  
  55. If you notice a problem or an incorrect display, be sure to lemme know!
  56.  
  57.       Bill Aycock
  58.       76703,4061
  59.       30 March 1990
  60.