gd6570 当前离线
列兵
DAIC 当前离线
中将
TOP
pcl_test 当前离线
荣誉版主
@echo off set /p n=请输入要累加的秒数: >gettime.vbs echo dim t,h,m,s >>gettime.vbs echo t=Hour(Now)*3600+Minute(Now)*60+Second(Now)+%n% >>gettime.vbs echo h=t\3600 >>gettime.vbs echo m=(t mod 3600)\60 >>gettime.vbs echo s=(t mod 3600) mod 60 >>gettime.vbs echo if (h^<10) then h="0"^&h >>gettime.vbs echo if (m^<10) then m="0"^&m >>gettime.vbs echo if (s^<10) then s="0"^&s >>gettime.vbs echo wscript.echo h^&":"^&m^&":"^&s for /f %%a in ('cscript /nologo gettime.vbs') do (set "gtime=%%a") del gettime.vbs /f /q echo 当前时间为%time:~0,8% echo 累加%n%秒后的时间为%gtime% pause复制代码
CrLf 当前离线
论坛巡查
<!-- : www.bathome.net @echo off for /f "delims=" %%a in ('echo %time:~,8% ^| mshta "file://%~0"') do echo %%a pause&exit --> <script language=vbs> Set fso = CreateObject("Scripting.FileSystemObject") t = fso.GetStandardStream(0).ReadAll t = DateAdd("s",100,CDate(t)) t = Hour(t) & ":" & Right("0" & Minute(t), 2) & ":" & Right("0" & Second(t), 2) fso.GetStandardStream(1).Write t close </script>复制代码
apang 当前离线
上将
@echo off set n=5 set t=%time: =0% set /a s=n+(1%t:~,2%-100)*3600+(1%t:~3,2%-100)*60+1%t:~6,2%-100 set /a hh=s/3600%%24+100,mm=s%%3600/60+100,ss=s%%60+100 set "newTime=%hh:~1%:%mm:~1%:%ss:~1%" echo,%newTime% pause复制代码
(Get-Date).AddSeconds(1000) | Get-Date -Format 'hh:mm:ss'复制代码
terse 当前离线
@if(0)==(0) echo off CScript -NoLogo -E:JScript %0 pause & exit @end var t = new Date(new Date().getTime()+5000); var reg = /((\d{1,2}:){2}\d{1,2})/g; t.toLocaleString().replace(reg, function(a,b){WSH.echo(b)});复制代码
评分人数
凡凡之呗 当前离线
上等兵
飛雪 当前离线