the desmos I made to showcase some of my maths behind this.

Current Time:


it uses the unix epoch and your calculated timezone offset. The time text display floors the calculated hour, minute and second value.