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

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

Parameters

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

Return Value

Type: DateTime
DateTime object with actual time
Remarks
You don't have to create instance of NetworkTime object. This is here to provide support for non .NET applications using COM model, which does not support static class members.
See Also