投稿

ラベル(コマンドプロンプト)が付いた投稿を表示しています

コマンドプロンプトでUnixTimeを表示する

Quick Edit Pencil
いまさらcmdだけど...

Batch: Timestamp to UNIX Time - Stack Overflow

create a .bat file called "getUtime.bat"
@echo off
echo WScript.Echo(new Date().getTime()); > %temp%\time.js
cscript //nologo %temp%\time.js
del %temp%\time.js
and call like this
"C:\>getUTime"
1430894237616