C# Class Netduino.WebServer.Core.Utilities.SyncTime

Afficher le fichier Open project: martinbuberl/Netduino

Méthodes publiques

Méthode Description
Update ( string timeServer, int timeZoneOffset ) : bool

Synchronize Netduino's local time with a time server (NTP).

Private Methods

Méthode Description
GetNtpTime ( String timeServer, int timeZoneOffset ) : System.DateTime

Method Details

Update() public static méthode

Synchronize Netduino's local time with a time server (NTP).
public static Update ( string timeServer, int timeZoneOffset ) : bool
timeServer string Time server (NTP) address e.g. 'time.nist.gov'.
timeZoneOffset int Time zone difference in hours from UTC.
Résultat bool