Skip to content

Files

Latest commit

 

History

History
51 lines (34 loc) · 1.26 KB

GetSystemTime.md

File metadata and controls

51 lines (34 loc) · 1.26 KB

Home

Function name : GetSystemTime

Group: Time - Library: kernel32


Retrieves the current system date and time. The system time is expressed in Coordinated Universal Time (UTC).


Code examples:

System and Local Time values
Setting the date and time that a file was created
Winsock: sending email messages (SMTP, port 25)
GDI+: custom Clock Control

Declaration:

VOID GetSystemTime(
  LPSYSTEMTIME lpSystemTime   // system time
);  

FoxPro declaration:

DECLARE GetSystemTime IN kernel32;
	STRING @ lpSystemTime  

Parameters:

lpSystemTime [out] Pointer to a SYSTEMTIME structure to receive the current system date and time.


Return value:

This function does not return a value.


Comments:

If time settings on your computer is different from the UTC (Coordinated Universal Time) then you can notice the difference between results of DATETIME() -- which is GetLocalTime wrapper -- and this function.