Skip to main content

Interface IRealTimeClock

Abstraction for Real-time clock devices

Assembly: Meadow.Contracts.dll​
View Source​
Declaration
public interface IRealTimeClock

Properties​

IsRunning​

Stops or starts the clock oscillator

View Source​
Declaration
bool IsRunning { get; set; }

Methods​

GetTime()​

Reads the RTC time

View Source​
Declaration
DateTimeOffset GetTime()
Returns​

System.DateTimeOffset

SetTime(DateTimeOffset)​

Sets the RTC time

View Source​
Declaration
void SetTime(DateTimeOffset time)
Parameters​
TypeName
System.DateTimeOffsettime