FILETIME to DateTime

  1. //from System.Runtime.InteropServices.ComTypes.FILETIME to System.DateTime

  2. FILETIME ft = new FILETIME();

  3. long hFT2 = (((long)ft.dwHighDateTime) << 32) + ft.dwLowDateTime;

  4. DateTime dte = DateTime.FromFileTime(hFT2);

猜你喜欢

转载自blog.csdn.net/bruce135lee/article/details/81109360