Class Rtc
Provides a set of methods that help developers to manage the RTC (Real Time Clock) on the target device.
Inherited Members
Namespace: nanoFramework.Runtime.Native
Assembly: nanoFramework.Runtime.Native.dll
Syntax
public static class Rtc
Methods
SetSystemTime(DateTime)
Sets the current system time and date.
Declaration
public static bool SetSystemTime(DateTime time)
Parameters
Type | Name | Description |
---|---|---|
DateTime | time | DateTime structure that contains the new system date and time. |
Returns
Type | Description |
---|---|
bool | If the function succeeds, the return value is true. |
Remarks
This method is specific to nanoFramework. The actual availability of the resulting feature depends on the availability on target platform that's running the nanoCLR.