I'm making a clock, so far it works perfectly, though one problem is that if the second/minute number is less then 10 it will write it as one number. I want the number to always have two digits.
What I want
1:01:05
What I get
1:1:5
I could do something along the lines of:
if (time):len() == 1 then
time = "0" .. time
end
But I'm not overly confident in its reliability (I'm extremely picky when it comes to this stuff so it could just be me overreacting), and it takes up a lot of space.
Whats a more sleek/reliable method then an if statement I could use to pull this off?

2 comments
Thanks, also I believe "^%" will stop "%" from reformatting the code.
the problem is that, if I use %%, the % shows, but the 02 wont