VFP 9 Current Time for Time Zone
Posted on 2013-01-19
Hi all. I'm using VFP 9 SP1.
On a form I need the time and time zone displayed for my PC.
Next to the time display I need a drop-down that lists all available time zones. When a timezone is selected, the time displayed changes to the correct CURRENT time for that zone.
For example, I'm in CST. My PC clock shows 6:00 PM here. From the drop-down I select EST. The time displayed on the form should then show 5:00 PM and EST as the time zone.
However, since I believe daylight savings occurs at different times in different zones, it can't be a simple (take my time and subtract one hour). It would have to be some sort of lookup that actually checks to see what time it is in the new time zone. I hope that makes sense.
I realize this is probably difficult to implement in fp, but I am being told this is a must-have, and I'm not even sure where to begin.