Click or drag to resize
NetworkTimeTryGetNetworkTime Method
Tries to get time from (or specified NTP server) and on failure returns local computer time.

Namespace: TreeksLicensingLibrary2
Assembly: TreeksLicensingLibrary2 (in TreeksLicensingLibrary2.dll) Version: 2.1.7367.37891 (
public static DateTime TryGetNetworkTime(
	string NTPServer = ""


NTPServer (Optional)
Type: SystemString
String address of time server. By default

Return Value

Type: DateTime
DateTime object with actual time
This function uses local computer time in offline state or connection errors.
See Also