Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GetLocalTime() is not local
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00036268
Message ID:
00036717
Views:
60
>>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

It's 4, during the daylight savings.

Vlad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform