本帖最后由 apang 于 2013-1-24 18:20 编辑
- @echo off
- set /a "hh=%time:~,2%,mm=1%time:~3,2%%%100,ss=1%time:~6,2%%%100"
- set /a ss+=10
- if %ss% geq 60 set /a k=ss/60,ss%%=60,mm+=k
- if %mm% geq 60 set /a k=mm/60,mm%%=60,hh+=k
- if %hh% geq 24 set /a hh%%=24
- set mm=0%mm%&set ss=0%ss%
- echo %hh%:%mm:~-2%:%ss:~-2%
- pause
复制代码
|