c#中WMI 中的日期和时间转为本地时间

取得的值:CreationDate:20170122084915 .713600+480

转:

var objQuery = new ObjectQuery("select * from Win32_Process WHERE ProcessID = " + process.Id);
var moSearcher = new ManagementObjectSearcher(objQuery);

var gets = moSearcher.Get();
foreach (ManagementObject mObj in gets)
{

DateTime creationDate = ManagementDateTimeConverter.ToDateTime(mObj["CreationDate"].ToString());

}




本文转自94cool博客园博客,原文链接:http://www.cnblogs.com/94cool/p/6339402.html,如需转载请自行联系原作者

上一篇:C#调用系统的日期和时间属性对话框


下一篇:Kubernetes弹性伸缩全场景解读(八) - 定时伸缩组件支持HPA兼容