Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GetLocalTime() is not local
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00036268
Message ID:
00036717
Vues:
57
>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform