Originally posted by zh159 at 2007-2-13 14:26:
改一下:
set /a a=%time:~0,2%%time:~3,2%
if %a% geq 800 if %a% leq 1800 (goto 下一步)
goto :eof
:下1步
..........
这样可以很直观的设置时间范围
恩,这个才是不错的
我就一直在使用这个格式做时间的运算
Originally posted by zh159 at 2007-2-13 14:26:
Revise:
set /a a=%time:~0,2%%time:~3,2%
if %a% geq 800 if %a% leq 1800 (goto 下一步)
goto :eof
:下一步
..........
This can set the time range very intuitively
Hmm, this is really good
I have been using this format for time calculations