工作 %time:~0,2%如何补零 2013年3月12日 admin 1.@echo offif %time:~,2% leq 9 (echo 0%time:~1,1%) else (echo %time:~,2%)pause>nul2.set time_=%time:~0,5%&call set time_=%%time_: =0%%echo %time_%pause>nul3.@echo offfor /f "delims=:" %%i in (‘time/t’) DO echo %%ipause>nul