How get Win32_OperatingSystem.LastBootUpTime in datetime format

后端 未结 2 1000
醉酒成梦
醉酒成梦 2021-01-24 12:22

I have been trying to get LastBootUpTime using Win32_OperatingSystem class (WMI).

HRESULT hr = pEnumerator->Next(WBEM_INFINITE, 1, 
        &pclsObj, &         


        
2条回答
  •  滥情空心
    2021-01-24 12:46

    You can safely ignore anything after the decimal point as in the format yyyymmddhhmmss..

提交回复
热议问题