It's a old fashion clock, don't ask me why I'have done this... but it work ^^
Just 7 segment display, is you would like to display numbers you can use this code.
Of course you can the same logique with 10 plotchar (for 0123456789) for each digit but tradingview limit at 64 the number of plots, so you will be limited at 6 digits.
The advantage of 7 segment display it's that you can display 9 digits :)