C# Класс Microsoft.ServiceBus.Micro.NtpClient

Static class to receive the time from a NTP server.
Показать файл Открыть проект

Открытые методы

Метод Описание
GetNetworkTime ( ) : System.DateTime

Gets the current DateTime from time-a.nist.gov.

GetNetworkTime ( IPEndPoint ep ) : System.DateTime

Gets the current DateTime form ep IPEndPoint.

GetNetworkTime ( string ntpServer ) : System.DateTime

Gets the current DateTime from ntpServer.

Описание методов

GetNetworkTime() публичный статический Метод

Gets the current DateTime from time-a.nist.gov.
public static GetNetworkTime ( ) : System.DateTime
Результат System.DateTime

GetNetworkTime() публичный статический Метод

Gets the current DateTime form ep IPEndPoint.
public static GetNetworkTime ( IPEndPoint ep ) : System.DateTime
ep System.Net.IPEndPoint The IPEndPoint to connect to.
Результат System.DateTime

GetNetworkTime() публичный статический Метод

Gets the current DateTime from ntpServer.
public static GetNetworkTime ( string ntpServer ) : System.DateTime
ntpServer string The hostname of the NTP server.
Результат System.DateTime