Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
UTC to Local Time
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP3
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01594152
Message ID:
01594210
Views:
49
If you're using any West Wind tools the wwAPI class has two functions that do the conversion: GetUtcTime() and FromUtcTime()...

http://west-wind.com/webconnection/docs/?page=_39c14q0om.htm

and

http://west-wind.com/webconnection/docs/?page=_39c14r53h.htm

I'd post it here, but there are a bunch of dependent functions inside of wwAPI for doing the binary parsing and timezone calcs.

Hope this helps,

+++ Rick ---

>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 !
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform