获取当前时间

@echo off

set hh=%time:~0,2%
if /i %hh% LSS 10 (set hh=0%time:~1,1%)

echo %date:~0,4%%date:~5,2%%date:~8,2%%hh%%time:~3,2%%time:~6,2%

pause

posted @ 2019-07-20 10:36  冣綮風  阅读(181)  评论(0编辑  收藏  举报