Beware of the confusion Octal/Decimal if the variable is 08 or 09
So modification needed...
set T1=%TIME%
echo Start time= %T1%
set HH=%T1:~0,2%
set MM=%T1:~3,2%
set SS=%T1:~6,2%
Rem To remove confusion Octal/Decinal with 08 and 09
IF %T1:~0,1%==0 set HH=%T1:~1,1%
IF %T1:~3,1%==0 set MM=%T1:~4,1%
IF %T1:~6,1%==0 set SS=%T1:~7,1%
Envoy