Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setting time on specific time zones
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00427695
Message ID:
00427791
Vues:
15
>>Montreal time works fine with my approach (which I think is pretty much the same as Al's). You'll just pass -9 as the third parameter (I think Montreal is GMT -9 - correct me if I'm wrong), rather than 0. The advantage of using GMT is that you don't need to worry about whether Montreal's on Daylight savings time when the message was posted (if you do ever go to Daylight Savings Time). Just get the machine to convert based on the timezone API to GMT.
>
>Do we have a code sample about the call to that API around here?

Michel,

I haven't followed this whole thread, so I can't be sure I'm giving you the information you need. I've got a file in the download section (Windows Time - Win32 and Other APIs), that, while it was designed to deal with setting file date/time stamps, can do this. The file system stores the date/time stamps in UTC time. The API, naturally, has a number of functions that convert to and from UTC time. You might want to take a look at that file. There's documentation that shows how to get the current UTC date/time, so going in the other direction isn't that hard.
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform