home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Utilities Platinum
/
Windows_Utilities_Platinum_Vol1.iso
/
desktop
/
settim04
/
settime.doc
< prev
next >
Wrap
Text File
|
1993-11-11
|
5KB
|
124 lines
SetTime, Version 0.4a
Written by Tony Isaac
Completed November 11, 1993
If you have any questions, comments, or suggestions, please send me e-mail
via the Internet (t.isaac@genie.geis.com) or GEnie (T.ISAAC). To send
Internet mail from CompuServe, use the normal mail system and use the
address ">INTERNET:t.isaac@genie.geis.com" (minus the quotes).
This program uses your modem to dial the NIST atomic clock in Boulder,
Colorado, and sets your PC's clock to within a second or so of the time
signal sent by that clock.
This program was written using VisualBasic for Windows version 3.0.
While this program has been tested and is in use in real applications, it
is NOT guaranteed to be bug-free. If you do find a problem, please let me
know, and I will do my best to correct the situation. However, since this
is free, there are NO guarantees.
License
This program is FREEWARE, and is not to be sold. Please distribute this
software as much as you wish, but in no case is any change to be assessed
for this software or its use. The copyright notice in the About dialog
box must be left intact.
Required Files
This archive includes all the files necessary to run this program, except
for VBRUN300.DLL, which is commonly available on CompuServe, GEnie, and
other bulletin boards. If you cannot locate this file, please contact me
by e-mail, and I will be happy to send it to you.
Other required files that are included:
SETTIME.EXE Main Windows executable
KEYSTAT.VBX Handles keystroke events
MSCOMM.VBX Handles serial communications
THREED.VBX Makes three-dimensional controls possible
Installation
SETTIME.EXE may be placed wherever you wish. The .VBX files and
VBRUN300.DLL may be placed either in the directory with SETTIME.EXE or in
the WINDOWS\SYSTEM directory.
Once the files are copied to their appropriate places, run SETTIME.EXE.
A setup dialog box will appear. Press F1 for instructions for setting
the proper values for each field. After setting all the options
correctly, click the Save button to save your settings in the SETTIME.INI
file, which will be created automatically the first time you run this
program, and will be placed in your WINDOWS directory along with all the
other .INI files. Then click the Dial button to set your computer's clock
to the NIST clock signal.
Description of SETTIME.INI
[Setup] section
Time Zones=Atlantic,Eastern,Central,Mountain,Pacific
This is a list of time zones known to this program. If you manually
add time zones to this list, make sure you also add a corresponding
entry to the [Time Zones] section.
Local Time Zone=Central
This should be your local time zone, but must be in the Time Zones
list above.
Serial Port=COM1
The COM port for your modem.
Baud Rates=1200,2400,4800,9600,19200,38400
This is a list of baud rates that can be selected on the setup screen.
Current Baud Rate=9600
The baud rate used to communicate with your modem. This should be at
least 1200, and must be in the Baud Rates list above.
Modem Init String=ATE1&D2&K0
The setup string for you modem. This should turn flow control off,
async echo on, and set DTR to disconnect when toggled from high to low.
Dial Prefix=ATDT
The command to dial your modem.
Phone Number=1(303)494-4774
The phone number for the NIST atomic clock.
Disable DST=No
Set this to Yes ONLY if your area NEVER switches to Daylight Savings
Time.
[Time Zones] section
Atlantic=-4
Eastern=-5
Central=-6
Mountain=-7
Pacific=-8
Each time zone listed above in the [Setup] Time Zones entry should
have an entry here. The number in each case is the number of hours
difference between the time zone and GMT. Since this program
automatically adjusts for Daylight Savings Time, use the offset for
standard time.
Format of Data Sent by NIST Clock
Each second, a line with the following form is sent:
JJJJJ YY-MM-DD HH:MM:SS TT L UT1 msADV UTC(NIST) *
JJJJJ = Julian date since 1/1/-4713 (minus 2.4 million)
YY-MM-DD = Current date (GMT)
HH:MM:SS = Current time (GMT, 24-hour clock)
TT: 00 = standard time
01-49 = daylight time, TT days until standard time
50 = daylight time
51-99 = standard time, TT days until daylight time
L: 1 = Leap second added at midnight tonight; otherwise 0
UT1 = Correction factor for older time measurements
msADV = Milliseconds time code is sent in advance of actual time (allowing
for transmission delays)
* = Time mark
(See BYTE Magazine, October 1993, p. 60 for complete details)