Press space to change between 12-hour and 24-hour format (or click if on mobile).
I was inspired to make this when I saw GeoClock by Scratch137. The link is here: https://scratch.mit.edu/projects/662739370/