Connecting to a Network Time Protocol server

0 Likes

This article explains how to use the C$SOCKET routine to connect to a Network Time Protocol (NTP) server and obtain a Universal Time.

Problem:

Sometimes it is useful to know the Universal Time so that the exact time and date can be provided to an application (for example to check license expirations).

Resolution:

The Universal Time is available from the internet thanks to NTP servers. The attached program shows how to use the C$SOCKET library routine to get information from one of these servers.

Incident Number: 2284151

Old KB# 14461
Comment List
Anonymous
Related Discussions
Recommended