在C#中,我怎么查询远程服务器的当前时间?
In C#, how do I query a remote server for its current time?
类似的功能
net time \servername
但返回一个时间戳,包括秒。
but returning a datestamp that includes seconds.
感谢
Windows时间服务实现了NTP。这里是一个 C#实现了NTP客户端。它使用一个Windows图形用户界面可以在简单网络时间协议客户端被发现。这是由Valer博灿。
Windows Time Service implements NTP. Here is a C# implementation of an NTP client. A Windows GUI using it can be found at Simple Network Time Protocol Client. It's by Valer Bocan.