>>>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement