/// /// Static method to return the network time /// /// time server address /// time server port /// Network Time Server Date/Time public static DateTime GetNetworkTime(string server, int port) { NetworkTimeClient ntc = new NetworkTimeClient(server, port); return ntc.Time; }
/// /// Static method to return the network time /// /// Network Time Server Date/Time public DateTime GetNetworkTime() { NetworkTimeClient ntc = new NetworkTimeClient(); return ntc.Time; }