This is the code for my version of Samurai Circuit's Doomsday Clock.  I converted it into a regular clock, added a ChronoDot RTC, and a toggle switch