Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I convert a GMT Time value?
Message
From
27/11/2001 07:10:19
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
27/11/2001 07:03:49
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00586211
Message ID:
00586214
Views:
18
>I need to convert a GMT DateTime value to the appropriate local time value.
>Does anybody know of any functions that obtain the GMT offset?
>
>TIA

If you know your time-zone offset (for instance, "+2"), just add that many hours to the GMT time. For DateTime values, you have to add seconds, so you have to multiply the hours by 3600 (seconds per hour).

HTH, Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform