convert number strings to int and zero-pad in text string

The digital clock treats the time components as strings so single digit values aren't zero-padded.