17.04.2011, 23:40
Well, yes, in your case it IS worthless. Because that whole code can be written in a single line.
"The time is %02d:%02d:%02d %s."
The 2 indicates the amount of numbers you'd like to have. The 0 in front of it indicates that it should be padded with 0's.
"The time is %02d:%02d:%02d %s."
The 2 indicates the amount of numbers you'd like to have. The 0 in front of it indicates that it should be padded with 0's.