I have been trying to get LastBootUpTime using Win32_OperatingSystem class (WMI).
HRESULT hr = pEnumerator->Next(WBEM_INFINITE, 1, &pclsObj, &
You can safely ignore anything after the decimal point as in the format yyyymmddhhmmss..