Edit

Share via


RtcBase Class

Definition

Real time clock (RTC)

public abstract class RtcBase : IDisposable
type RtcBase = class
    interface IDisposable
Public MustInherit Class RtcBase
Implements IDisposable
Inheritance
RtcBase
Derived
Implements

Constructors

RtcBase()

Creates an instance of this base class

Properties

DateTime

Set or retrieves the current date/time. This property returns a DateTimeOffset and is therefore correct regardless of the current time zone (when LocalTimeZone is set correctly).

LocalTimeZone

Gets or sets the time zone this instance will operate in. Defaults to the local time zone from the system. Changing this property will not change the time on the real time clock, but instead affect the return value of DateTime

RtcDateTime

The Device's raw DateTime. The caller must be aware of the device's time zone. The behavior of the Kind property is implementation-dependent (typically it is ignored)

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Dispose(Boolean)

Releases the unmanaged resources used by the RtcBase and optionally releases the managed resources.

ReadTime()

Read time from the device

SetTime(DateTime)

Set the device time

Applies to