Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Time in South Africa
Message
De
16/01/2013 08:17:57
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01562920
Message ID:
01562936
Vues:
50
>>>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).
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform