一条命令查询电脑多久没关机

在windows下的PowerShell下:

PS C:\Users\Administrator> (get-date) - (gcim Win32_OperatingSystem).LastBootUpTime

Days              : 2
Hours             : 18
Minutes           : 26
Seconds           : 32
Milliseconds      : 875
Ticks             : 2391928755232
TotalDays         : 2.7684360592963
TotalHours        : 66.4424654231111
TotalMinutes      : 3986.54792538667
TotalSeconds      : 239192.8755232
TotalMilliseconds : 239192875.5232



PS C:\Users\Administrator>

在这里插入图片描述

发布了79 篇原创文章 · 获赞 70 · 访问量 2万+

猜你喜欢

转载自blog.csdn.net/qq_17623363/article/details/102966125
今日推荐