????? ????? time_t UNIX FILETIME Win32 ?? SYSTEMTIME

?????? ????????? ?????? ?????????
???? ???????: 167296 - ??? ???????? ???? ????? ????? ??? ???????.
????? ???? | ?? ????

??????

??? ??????? ???????? UNIX, ??? ???????? ??? ????? ??? ?? ??????? C ANSI ??? ??????? ???????? ??? ???? 'time_t' ? ????? ???? ????? ??? ????? ????? ????? 1, 1970 UTC (????? ??????? coordinated).

??? ???????? ???? ????? ??? Win32 ???????? ?????? ?? ??????? ???? FILETIME 64 ?? ????? ???? ??? ??????? ??????? 100 nanosecond ??? ????? 1, 1601 UTC (????? ??????? ??????).

???? ??? ?????? ????? ????? ??? UNIX ??? ??????? ????? Win32 ??????.

??????? ????

???? ?????? ??????? filetime ?????? time_t UNIX ??? ????? FILETIME Win32. ?????? time_t ????? ?? ???? 32 ?? ? FILETIME ???? 64 ?? ? ???? ??? ??????? ?????? Win32 Int32x32To64() ?? ?????? ???????:
   #include <winbase.h>
   #include <winnt.h>
   #include <time.h>

   void UnixTimeToFileTime(time_t t, LPFILETIME pft)
   {
     // Note that LONGLONG is a 64-bit value
     LONGLONG ll;

     ll = Int32x32To64(t, 10000000) + 116444736000000000;
     pft->dwLowDateTime = (DWORD)ll;
     pft->dwHighDateTime = ll >> 32;
   }
				
????? ????? ??? UNIX ??? ???? FILETIME ??????? ????? Win32 ???? ???? ?????? ?????? ???????? ??????? Win32 ??? FileTimeToSystemTime() FileTimeToDosDateTime().
   void UnixTimeToSystemTime(time_t t, LPSYSTEMTIME pst)
   {
     FILETIME ft;

     UnixTimeToFileTime(t, &ft);
     FileTimeToSystemTime(&ft, pst);
   }
				

???????

???? ???????: 167296 - ????? ??? ??????: 30/????/1427 - ??????: 3.3
????? ???
  • Microsoft Win32 ????? ????? ???????, ????? ?????? ??:
    • Microsoft Windows 95
    • Microsoft Windows 98 Standard Edition
    • Microsoft Windows Millennium Edition
    • Microsoft Windows NT 3.51 Service Pack 5
    • Microsoft Windows NT 4.0
    • the operating system: Microsoft Windows 2000
    • the operating system: Microsoft Windows XP
????? ??????: 
kbmt kbdatetime kbhowto kbkernbase kbprogramming KB167296 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????167296

????? ???????

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com