Factored out the digital clock code from the example page and created an encapsulated V2 widget.