Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Timezones
Message
De
08/08/1997 08:32:34
 
 
À
07/08/1997 18:55:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Divers
Thread ID:
00043633
Message ID:
00043679
Vues:
30
Use GetSystemTime() win32API function to get the GMT time.
Use GetLocalTime() Wind32API function to get the local time. It also takes into account the daylight savings.

Your Windows must be correctly setup in order to have correct results with GetLocalTime().

Look in the KB here on UT for an example (Michel Fournier) on how to use these functions.

Vlad

>How can I tell what timezone the computer running my application is in? Actualy, I need to know how many hours they are off from GMT (Greenwich Mean Time), taking daylight savings time into account.
>
>For instance, I'm in EST and right now we're 4 hours behind GMT (we're in daylight savings time right now. Normaly we'd be 5 hours behind GMT). So to covert a GMT time to local time, I'd subtract 4 hours.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform