获取UTC+0时间的批处理
@echo off call :getUTCTime echo %UTCTIMESTR% exit /b :getUTCTime FOR /F "usebackq tokens=1,2 delims==" %%i IN (`wmic path win32_utctime get /format:list^|find "="`) DO ( if "%%i" EQU "Year" set YY=%%j if "%%i" EQU "Month" set MM=%%j if "%%i" EQU "Day" set DD=%%j if "%%i" EQU "Hour" set HH=%%j if "%%i" EQU "Minute" set MI=%%j if "%%i" EQU "Second" set SS=%%j if "%%i" EQU "DayOfWeek" set DW=%%j ) if %MM% LSS 10 set MM=0%MM% if %DD% LSS 10 set DD=0%DD% if %HH% LSS 10 set HH=0%HH% if %MI% LSS 10 set MI=0%MI% if %SS% LSS 10 set SS=0%SS% if "%DW%" EQU "1" set DWS=MON if "%DW%" EQU "2" set DWS=TUE if