Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
UTC to Local Time
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP3
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01594152
Message ID:
01594157
Vues:
48
Thanks for the info, Rick.

What I want to do is to take a UTC time that was saved in a field, convert it to the Local Time of this PC, and display it on the screen.

e.g.. let's say this field has the UTC time of 09/05/2013 06:46:44 PM

and the user is in North Carolina on this date of 02/12/2014 10:30:00 AM (EST) and wants to display the UTC field value.....

The Local Time for the UTC value would be 09/05/2013 02:46:44 PM (they were on Daylight Savings Time then so the Bias would be -4 hours)

Does MSDN have anything for that?

Much appreciated !!!!

Tommy

>>Hi Gang!
>>Here is a question from me..........
>>I have data in a field for UTC time. The users don't like this....... they find it confusing and want the data displayed in the LOCAL time instead.
>>So do you have any code that converts the data in the field from UTC to THEIR LOCAL TIME (based on the PC settings).
>>I looked on the web and didn't find anything for VFP for UTC to Local Time.
>>Thanks a bunch !
>
>There is a Win32 function, GetLocalTime() that can be used. GetSystemTime() returns the time in UTC. If you lookup those on MSDN you'll find functions which allow you to convert the two.
Tommy Tillman A+ NetWork+ MCP
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform