home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CP/M
/
CPM_CDROM.iso
/
beehive
/
utilitys
/
today.arc
/
README.DOC
next >
Wrap
Text File
|
1991-08-11
|
6KB
|
134 lines
TODAY
For CP/M. Version 1.0
This is the CP/M version of the TODAY program that is floating around
on the I.B.M. PC's. It's written in Turbo Pascal and should be quite easy
to adapt to any system that has hardware Real Time Clock fitted. If you
don't have a RTC, you can still use TODAY by specifying the date when
running the program eg. TODAY 0501 tells you what happend on May 1st.
INSTALLATION
Extract the files from the library and uncrunch them. Then decide where
you want to keep the the data files, on my system i keep them out of
sight in user area 13. This can be changed to suit your system by
altering the value assigned to the constant "user" at the begining of the
code.
The program expects the year,month and day values (supplied by your own
clock read routine) to be integers. Don't worry about the day of the week
as it works it out by itself.
DATE FILE STRUCTURE
There are 13 data files used in the TODAY program. The first 12 files
have extensions named after each month to identify them. The 13th file
has the .OWN extension and this where you can store your own personal
dates instead of having to spread them out through the other files. All
the data files are in plain ASCII and can be changed in any text editor
eg. WordStar (non-document mode). The format is as follows:
Column 1: This column has 3 record types, which signify what the line
is going to do. It can be a B for birthdays, S for special
dates in history or R for a reminder.
Cols 2-5: Month and day as MMDD with leading zeros. Zeros for either
month or day cause ALL months or days to match when being
scanned. For example 0001 would match the first of every
month while 0400 would match every day of April.
Cols 6-9: The full year of the event as four digits. It may be left
blank or, for Reminders only, you may enter another MMDD that
is an ending date corresponding to the starting date in
columns 2-5. See REMINDER FORMAT below for details.
Column 10: A special processing flag. Values may be:
BLANK for no special processing. C to continue a message from
the previous line. Note, that MMDD field MUST be repeated.
DAY-OF-WEEK DIGIT where 1 = Sunday ... 7 = Saturday This will
cause the message to display only if the date falls on a
certain day of the week. Look in the November file for
voting day examples.
Cols 11-70: The message to be displayed for this date.
EXAMPLES
*mmddyyyy Birthdays
*-------- ------------------------------------------------------------
B09011875 Edgar Rice Burroughs, novelist, Ah-ee-ah-ee-ah!
B09021838 Queen Liliuokalani (last queen of Hawaii).
B09021952 Jimmy Connors, tennis brat
*mmddyyyy Events
*-------- ------------------------------------------------------------
S09011939 Germany invades Poland, starts World War II.
S09011952 Sutro Baths purchased by George Whitney.
S0901 2Labor Day, a legal holiday
S09021620 The Mayflower sets sail from Plymouth with
S09021620C102 Pilgrims.
*mmddyyyy Reminders
*-------- ------------------------------------------------------------
R0001 Pay the mortgage!
R0401 Taxes due in two weeks.
R0415 Last day to pay taxes!
Note that Labor day must be on a Monday and the Mayflower gets two
lines of coverage befitting that momentous event.
This format applies to TODAY.OWN also. You can put in birthdays,
anniversaries, holidays etc. Messages in your personal file will tend to
be only Birthdays and Reminders. Also, try putting in reminders a few
days BEFORE the date in question to give youself some warning.
REMINDER FORMAT
If you want to reminded for a few days in a row then here is how you do
it. The four columns immediately following the month and day normally
hold a four digit year or blanks. But by putting a beginning month and
day in columns 2-5 and an ending month and day in columns 6-9. This way
you don't have to put in a separate reminder for every day. It saves a
lot of typing! For example:
R12101224 Christmas is nearly here. Better buy some presents
R1225 Hope you remembered the presents, or else!
reminds me not to forget about buying christmas presents every day from
December 10 to December 24. Then on the 25th, there is the usual one
shot reminder.
Another nice feature is the monthly reminder. Just set the month
portion of the date to zero and the reminder will appear every month on
the days you specify. For example:
R00050014 First mortgage due on the 15th.
But it gets even better! What if the date you need to be reminded of
falls on the 5th of the month and you want to be reminded from the 27th
of one month to the 4th of the following month? No problem! If TODAY
sees that the day of the month for the second date is less than the day
in the first date, it assumes that the second date is in the following
month. Not bad eh? Here's how:
R00270004 Second mortgage due on the 5th.
and if TODAY sees the day and month in the second column greater than the
first column it assumes the second date is in the following year.
R12200113 Msg will be display from Dec 27th to Jan 13th.
-------------------------------------------------------------------------
As far as i can see, it emulates the I.B.M version correctly, so if you
find any differences or bugs, please let me know.
Mick Howland (VK6ZMH) c/o Perth Omen.
on the 15th.
But it gets even better!