Skip to content

Real-Time Clock Class Pattern

The Real-Time Clock Class Pattern provides a time-of-day clock.

A property to get or set the current time of the RTC. The value is an ECMAScript time value.

Updates the RTC configuration.

options

alarm - The time in milliseconds to set the RTC’s alarm.

A function invoked when an alarm is triggered by the RTC.

Real-Time Clock Class Pattern