Get the exact time for a remote server

.net, c#, time

Solution

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.

Problem

In C#, how do I query a remote server for its current time? Similar functionality to ``` net time \\servername ``` but returning a datestamp that includes seconds. Thanks

Original source