by Daniel S. Soper (9 Submissions)
Category: Miscellaneous
Compatability: Visual Basic 3.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating:
(5 Votes)

Have you ever noticed that your computer's clock isn't very accurate? If so, then this code is for you! This program automatically connects to the U.S. Naval Observatory's atomic time server, and retreives the current Coordinated Universal Time (UTC). It then examines your system's time zone settings and daylight savings time settings, adjusts the UTC time based on those settings, and then updates your system time. Depending on your network connection, this program will always set your system clock to within 0.5 seconds of the actual atomic time!
Inputs
None.
Assumes
You must have an active network connection for this program to work.
Code Returns
None.
Side Effects
None.
API DeclarationsGetTimeZoneInformation
StretchBlt