Last active
August 21, 2020 01:32
-
-
Save MarkZhangTW/cd08430c29645d9f0f5f7909853c34d3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FOR /F "tokens=1,2 delims=.+" %%a in ('wmic os get localdatetime ^| findstr "+"') DO set TIME_NOW=%%a%%b | |
SET TIME_NOW=%TIME_NOW:~0,17% | |
ECHO %TIME_NOW% |
Author
MarkZhangTW
commented
Aug 8, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment