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