C# Class Microsoft.ServiceBus.Micro.NtpClient

Static class to receive the time from a NTP server.
Afficher le fichier Open project: rickggaribay/IoT

Méthodes publiques

Méthode Description
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.

Method Details

GetNetworkTime() public static méthode

Gets the current DateTime from time-a.nist.gov.
public static GetNetworkTime ( ) : System.DateTime
Résultat System.DateTime

GetNetworkTime() public static méthode

Gets the current DateTime form ep IPEndPoint.
public static GetNetworkTime ( IPEndPoint ep ) : System.DateTime
ep System.Net.IPEndPoint The IPEndPoint to connect to.
Résultat System.DateTime

GetNetworkTime() public static méthode

Gets the current DateTime from ntpServer.
public static GetNetworkTime ( string ntpServer ) : System.DateTime
ntpServer string The hostname of the NTP server.
Résultat System.DateTime