Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Time Zones
Message
 
 
À
22/09/2008 11:39:16
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:
01349507
Vues:
36
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.

>I'm sorry, pretend I'm even more stupid than it appears and explain it to me again. If I'm running this on a PC that is the EST time zone why is there an offset? I thought the point was to end up with the date and time that the app is running in.
>
>>You're adding Timezone offset for your PC to the local time on the same PC. The local time has that offset already applied to it.
>>You can get GMT/UTC time as comment in the code says
>>
>>? DATETIME() + lnTimeZoneOffset
>>
>>
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform