Click or drag to resize
NetworkTimeGetNetworkTime Method
Returns local time from specified ntp server.

Namespace: TreeksLicensingLibrary
Assembly: TreeksLicensingLibrary (in TreeksLicensingLibrary.dll) Version: 1.3.5562.40448
Syntax
public static DateTime GetNetworkTime(
	string ntpServer = "time.windows.com"
)

Parameters

ntpServer (Optional)
Type: SystemString
String URL address of time server. By default time.nist.gov

Return Value

Type: DateTime
DateTime object with actual time
Remarks