Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Time in South Africa
Message
 
To
16/01/2013 08:17:57
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01562920
Message ID:
01563021
Views:
49
>>>>Does anyone know how to get the time in South Africa in VFP?
>>>
>>>Off the top of my head I'd store the SA UTC as a constant, have the app grab the local UTC on startup and have a function to do the math I'd call whenever I needed the SA time.
>>
>>Sorry I don't understand - I could add 2 hours to UK time but in UK summer (dates vary) it's only 1 hour
>
>Retrieve the Universal Time value from the OS (using API call), then add the locale TZ offset (from Universal Time) for target locale, then adjust for daylight saving if required (using info in the locale TZ profile).

Thanks
Specialist in Advertising, Marketing, especially Direct Marketing

I run courses in Business Management and Marketing
Previous
Reply
Map
View

Click here to load this message in the networking platform