Real-Time Clock Class Pattern
The Real-Time Clock Class Pattern provides a time-of-day clock.
Instance Properties
Section titled “Instance Properties”A property to get or set the current time of the RTC. The value is an ECMAScript time value.
Instance Methods
Section titled “Instance Methods”configure(options)
Section titled “configure(options)”Updates the RTC configuration.
Parameters
Section titled “Parameters”options
alarm- The time in milliseconds to set the RTC’s alarm.
Callbacks
Section titled “Callbacks”onAlarm()
Section titled “onAlarm()”A function invoked when an alarm is triggered by the RTC.