OS & Shell/Windows

현재 시간

냐옴 2013. 11. 28. 10:39

cls

echo off


set yyyy=%date:~0,4%

set mm=%date:~5,2%

set dd=%date:~8,2%

set yyyymmdd=%yyyy%%mm%%dd%


set hh=%time:~0,2%

set mi=%time:~3,2%

set ss=%time:~6,2%

set hhmiss=%hh%%mi%%ss%


set now=%hhmiss%.%yyyymmdd%


echo %date%

echo %time%

echo %now%