Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
UTC time Conversion
Message
 
To
02/05/2013 16:56:44
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows 2000 SP3
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01572478
Message ID:
01572580
Views:
70
>Basically -- it's better to get the UT directly rather than convert form local time. Part of the snag is functions like DATETIME() and TIME() *don't* tell you if the time they return are in terms of standard local time or daylight local time -- and specifically a problem on the day on which the transition from daylight to standard occurs -- local time repeats (and in the case of the USA where daylight saving occurs, there is a 1-hour "window" where local time repeats -- once for daylight, and once again for standard).

DateTime() and Time() are always returned in the active locale that Windows is running under so you can find out what that is by calculating the timezone offset with GetTimeZone() from Win32.

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