As we know,
HOUR is from 0 to 11,
MIN is from 0 to 59.
So there are 12*59=720 possible situations.
Why not prebuilt all the possible situations in 10 string?
720 is not a big number.
And I think use more memory for more efficient code is nice.
Plz show me if I was wrong.