Information générale
Catégorie:
Fonctions Windows API
Use GetSystemTime() win32API function to get the GMT time.
Use GetLocalTime() Wind32API function to get the local time. It also takes into account the daylight savings.
Your Windows must be correctly setup in order to have correct results with GetLocalTime().
Look in the KB here on UT for an example (Michel Fournier) on how to use these functions.
Vlad
>How can I tell what timezone the computer running my application is in? Actualy, I need to know how many hours they are off from GMT (Greenwich Mean Time), taking daylight savings time into account.
>
>For instance, I'm in EST and right now we're 4 hours behind GMT (we're in daylight savings time right now. Normaly we'd be 5 hours behind GMT). So to covert a GMT time to local time, I'd subtract 4 hours.
Précédent
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