NetworkTimeiGetNetworkTime Method |
Returns local time from specified ntp server.
Namespace: TreeksLicensingLibraryAssembly: TreeksLicensingLibrary (in TreeksLicensingLibrary.dll) Version: 1.3.5562.40448
Syntax public DateTime iGetNetworkTime(
string ntpServer = "time.windows.com"
)
Public Function iGetNetworkTime (
Optional ntpServer As String = "time.windows.com"
) As DateTime
public:
DateTime iGetNetworkTime(
String^ ntpServer = L"time.windows.com"
)
member iGetNetworkTime :
?ntpServer : string
(* Defaults:
let _ntpServer = defaultArg ntpServer "time.windows.com"
*)
-> DateTime
Parameters
- ntpServer (Optional)
- Type: SystemString
String URL address of time server. By default time.windows.com
Return Value
Type:
DateTimeDateTime 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