home *** CD-ROM | disk | FTP | other *** search
- GETTIME.PAS
- Dick Thiebaud 12/8/90
-
- GENIE E-mail R.THIEBAUD
-
- GETTIME.PAS is a Turbo Pascal program which dials the U.S Naval
- Observatory, gets the current time of day, and sets the DOS time.
- On an AT, this also sets the real time clock. I wrote this program
- mostly as a learning experience in implementing an interrupt-driven
- serial-communications unit in Turbo Pascal. This program may be freely
- used, modified, or adapted as desired.
-
- This program only works for a modem in which the DCD signals and the DTR
- signals follow the actual state these lines, and are not forced high.
- This is the same requirement as is needed for use of Aladdin.
-
- The program includes a fairly general-purpose serial communications
- unit. It also includes several other small utility units I used in
- building the program.
-
- Comments and documentation in the source code are sparse, since this was
- mainly written for my own use. I've tried to make the variable names
- and procedure names meaningful.
-
- The program expects a parameter file named PARMFILE to be in the
- current directory. This is an Ascii file containing four lines:
-
- 1. the time zone, in hours from Greenwich Mean Time.
- 2. the communications port, 1 or 2. (Port 3 or 4 are not supported;
- but this could probably be added easily).
- 3. the modem reset command.
- 4. the modem dial command for the Naval Observatory. The
- phone number is 202-653-0351.
-
- Execute the program SETPARM.EXE to create or modify the parameter file.
-