Archived Forum Post

Index of archived forum posts

Question:

Can I use Chilkat components to query an NTP server?

Oct 04 '17 at 20:38

Can I use Chilkat components to query an NTP server?
I want to sync a local computer date/time with a specified NTP server.


Answer

Yes and no. This example demonstrates using Chilkat Socket to connect to an NIST time server and (using the old Time Protocol (RFC 868)), will read the current GMT time.

Note: This is not necessarily the very best means for getting the current date/time. The most commonly used time protocol is the Network Time Protocol (RFC-1305).

https://www.example-code.com/delphiDll/socket_nist_time_server.asp

My guess is that you'd want the newer NTP protocol, which I think is a bit more complicated..