Skip to content

Latest commit

 

History

History
48 lines (31 loc) · 1.05 KB

GetSystemTimeAsFileTime.md

File metadata and controls

48 lines (31 loc) · 1.05 KB

Home

Function name : GetSystemTimeAsFileTime

Group: Time - Library: kernel32


The GetSystemTimeAsFileTime function retrieves the current system date and time. The information is in Coordinated Universal Time (UTC) format.


Code examples:

Setting the date and time that a file was created

Declaration:

void GetSystemTimeAsFileTime(
  LPFILETIME lpSystemTimeAsFileTime
);  

FoxPro declaration:

DECLARE GetSystemTimeAsFileTime IN kernel32;
	STRING @lpSystemTimeAsFileTime
  

Parameters:

lpSystemTimeAsFileTime [out] Pointer to a FILETIME structure to receive the current system date and time in UTC format.


Return value:

This function does not return a value.


Comments:

This function is useful when you need to set a file time using current system time. Otherwise you would use a succession of GetSystemTime and SystemTimeToFileTime functions.