It’s a clock. It’s that simple. (But actually really complicated)
I made a clock. Do you like it? You would be surprised how much code there is, have a look!