if EndTimeMinute < 10:
EndTimeMinute = EndTimeMinute
Need to add zero here
Currently the result is just coming out as a single digit. So the time is going out to 1:1
. I need to make it so that my code bring out the time as 1:01
.
if EndTimeMinute < 10:
EndTimeMinute = EndTimeMinute
Need to add zero here
Currently the result is just coming out as a single digit. So the time is going out to 1:1
. I need to make it so that my code bring out the time as 1:01
.
You have to convert it into a string.
Pad it with
n = 7 # Example
if n < 10:
result = '%02d' % n
else:
result = str(n)
print result