I wanted to get a formatted date and time onto my dashboard so setup a small device driver to do the formatting. The driver now includes in-built scheduling of updates, removing the need for an RM rule to trigger this.
EDIT 2021-02-11 - Added this driver to my Hubitat Git repository:
EDIT 2021-02-27 - Removed old code from this post now that I am confident in the use of the driver. Updated title of the thread to include the [RELEASE] tag.
- Scheduling Device Updates - Added a scheduling option for refreshing the date and time attributes, rather than needing to setup an RM rule.
- Date and Time attribute - @luarmr added a "html friendly" attribute that includes both the time and date as one value.
- Time Zone Support - @luarmr also added a time zone preference setting that is used when updating the date and time attributes. This means that different date/time virtual devices can be setup to show the current date/time in different locations. Make sure you click Save Preferences on any device using the driver when this update is applied.