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

显示文件 Open project: martinbuberl/Netduino

Public Methods

Method Description
Update ( string timeServer, int timeZoneOffset ) : bool

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

Private Methods

Method Description
GetNtpTime ( String timeServer, int timeZoneOffset ) : System.DateTime

Method Details

Update() public static method

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.
return bool