Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Timezones
Message
From
08/08/1997 08:32:34
 
 
To
07/08/1997 18:55:28
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Miscellaneous
Thread ID:
00043633
Message ID:
00043679
Views:
33
Use GetSystemTime() win32API function to get the GMT time.
Use GetLocalTime() Wind32API function to get the local time. It also takes into account the daylight savings.

Your Windows must be correctly setup in order to have correct results with GetLocalTime().

Look in the KB here on UT for an example (Michel Fournier) on how to use these functions.

Vlad

>How can I tell what timezone the computer running my application is in? Actualy, I need to know how many hours they are off from GMT (Greenwich Mean Time), taking daylight savings time into account.
>
>For instance, I'm in EST and right now we're 4 hours behind GMT (we're in daylight savings time right now. Normaly we'd be 5 hours behind GMT). So to covert a GMT time to local time, I'd subtract 4 hours.
Previous
Reply
Map
View

Click here to load this message in the networking platform