>I have defined my Windows setup to be EST time zone. From Visual FoxPro, when I use GetLocalTime(), it returns an offset of 4 based on the Greenwhich time. I would like to use GetLocalTime(), as suggested by Paul, because I won't have an hour conversion to do. But, my results are giving me the same result as GetSystemTime().
Michel,
I've played around with GetLocalTime() and, as you have, I've gotten the same result as GetSystemTime(). In both instances, however, the information was correct. The only thing that I can think of might be in the declaration of the API call. I used:
DECLARE INTEGER GetLocalTime IN Win32API;
STRING @cTimeStruct
cTimeStruct = SPACE(16)
= GetLocalTime(@cTimeStruct)
I then evaluated each two byte segment of the string and coverted it to numeric. BTW, Eastern time is 5 hours behind GMT.
George
George
Ubi caritas et amor, deus ibi est