Click or drag to resize

NetworkTimeGetNetworkTime Method

Returns date and time information from specified NTP server

Namespace:  TreeksLicensingLibrary2
Assembly:  TreeksLicensingLibrary2 (in TreeksLicensingLibrary2.dll) Version: 2.1.8318.42066 (2.1.0.0)
Syntax
public static DateTime GetNetworkTime(
	string NTPServer = "time.windows.com"
)

Parameters

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

Return Value

Type: DateTime
DateTime object with actual time
Remarks
This function will throw an exception while offline.
See Also