Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

.Net API to get exact time for Internet Time Server

Tags:

c#

ntp

I need to know if there is any .NET API exists to fetch the current time from Internet Time Server, so that changing the system time at the client will not affect the integrity of my application.

like image 222
Saqwes Avatar asked Feb 23 '23 04:02

Saqwes


1 Answers

you have several options - though none built-in:

  • http://dotnet-snippets.com/dns/simple-network-time-ntp-protocol-client-SID571.aspx
  • http://www.codeproject.com/KB/IP/ntpclient.aspx
  • http://www.codeproject.com/KB/datetime/SNTPClient.aspx
  • http://www.rebex.net/time.net/ (commercial)
like image 60
Yahia Avatar answered Mar 03 '23 02:03

Yahia