Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Time Zones
Message
 
 
À
22/09/2008 11:55:42
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01349318
Message ID:
01349520
Vues:
31
ServerGMT = ServerLocalTime + ServerTimeDiff
LocalTime = ServerGMT - LocalTimeDiff
>Ok, I'm still feeling a bit dumb here. Are you saying the I will know the difference between GMT and whatever my local time is, and I also will know the difference between GMT and whatever time the app is going to run in, so I can do something like this?
>
>LocalTimeDiff - ServerTimeDiff = AppTimeAdjustment
>
>
>>You have your local time already returned by DATETIME() function. Doug's code gives you info about your Timezone. It can be used to convert the local time to GMT or if you have some other time in GMT you can convert it to the local time.
>>
>>Check also George Tasker's Windows Time file #9738 that shows how to do that through Windows API.
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform