The GetTime method causes the control to connect to the
specified server and request the current date and time. The
application will block and wait for a response until the timeout
period is reached. In most cases, it is preferable to use the NTP pool servers which
distribute requests over a number of different servers:
- pool.ntp.org is a global load-balanced pool of time servers
- us.pool.ntp.org servers are located in the United States
- eu.pool.ntp.org servers are located in Europe
- asia.pool.ntp.org servers are located in Asia
There are also load balanced pools of time servers available in
specific countries prefixed by their country code. For example,
the de.pool.ntp.org servers are located in Germany and
the uk.pool.ntp.org servers are located in the United Kingdom.
Regardless of their location, the time values they return are always
in Coordinated Universal Time (UTC) and are not localized based on the
physical location of the server.
In the United States, the National Institute of Standards and
Technology (NIST) hosts a number of public servers which can be used
to obtain the current time. The following table lists the current
host names and addresses:
| Server Name |
IP Address |
Location |
| time-a.nist.gov |
129.6.15.28 |
Gaithersburg, Maryland |
| time-b.nist.gov |
129.6.15.29 |
Gaithersburg, Maryland |
| time-nw.nist.gov |
131.107.13.100 |
Redmond, Washington |
| time-a.timefreq.bldrdoc.gov |
132.163.4.101 |
Boulder, Colorado |
| time-b.timefreq.bldrdoc.gov |
132.163.4.102 |
Boulder, Colorado |
| time-c.timefreq.bldrdoc.gov |
132.163.4.103 |
Boulder, Colorado |
Time servers are also commonly maintained by Internet service
providers and universities. If you are unable to obtain the time from
a server, contact the system administrator to determine if they have
the standard time service available on port 123.