NetworkTimeGetNetworkTime Method |
Returns local time from specified ntp server.
Namespace: TreeksLicensingLibraryAssembly: TreeksLicensingLibrary (in TreeksLicensingLibrary.dll) Version: 1.3.5562.40448
Syntax public static DateTime GetNetworkTime(
string ntpServer = "time.windows.com"
)
Public Shared Function GetNetworkTime (
Optional ntpServer As String = "time.windows.com"
) As DateTime
public:
static DateTime GetNetworkTime(
String^ ntpServer = L"time.windows.com"
)
static member GetNetworkTime :
?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.nist.gov
Return Value
Type:
DateTimeDateTime object with actual time
Remarks See Also