%time:~0,2%如何补零

‍1.@echo off
if %time:~,2% leq 9 (echo 0%time:~1,1%) else (echo %time:~,2%)‍pause>nul
2.set time_=%time:~0,5%&call set time_=%%time_: =0%%
echo %time_%p‍ause>nul
3.‍@echo off
for /f "delims=:" %%i in (‘time/t’) DO echo %%i
pause>nul