有人知道如何从windows崩溃事件中解析时间戳吗?例如,如何将0x55f7fcbe转换为人类可读的时间戳?
Faulting application name: EXCEL.EXE, version: 15.0.4763.1000, time stamp: 0x55f7fcbe
Faulting module name: EXCEL.EXE, version: 15.0.4763.1000, time stamp: 0x55f7fcbe
Exception code: 0xc0000005
Fault offset: 0x000000000010a2a4
Faulting process id: 0x26a0
Faulting application start time: 0x01d12e98fb593cfc
Faulting application path: C:\Program Files\Microsoft Office\Office15\EXCEL.EXE
Faulting module path: C:\Program Files\Microsoft Office\Office15\EXCEL.EXE
Report Id: 1cecf154-9a91-11e5-93ee-3417eba4258b发布于 2018-04-12 12:53:10
谢谢为我提供信息。以下c#代码将出错的应用程序开始时间转换为日期时间:
Int64 time = Int64.Parse(args[0], System.Globalization.NumberStyles.HexNumber);
time = time / 10000;
DateTime dt = new DateTime(1600, 1, 1);
dt = dt.AddMilliseconds(time);
Console.WriteLine($"{args[0]} converted to universal time is
{dt.ToString("s")}");
dt = dt.ToLocalTime();
Console.WriteLine($"{args[0]} converted to local time is
{dt.ToString("s")}");https://stackoverflow.com/questions/34095569
复制相似问题