geotdw
27th December 2011, 05:08
Hi,
I'm currently using Qt 4.8 to program. I was wondering how can I change my TimeZone to a specific city or country so that I would be able to check if the DST is active for that city and if so what the value is for that DST. In other words, let's say I program using Pacific time, and my application has to create something with a validation date. Now the user has a choice of selecting the timezone he wants to create the validation date for from a list of cities (for example he chooses London which is GMT +00:00). How can I know if London had the DST active or not at that moment, and if it is how much is the DST for like +1 +2 and so on...
Regards
I'm currently using Qt 4.8 to program. I was wondering how can I change my TimeZone to a specific city or country so that I would be able to check if the DST is active for that city and if so what the value is for that DST. In other words, let's say I program using Pacific time, and my application has to create something with a validation date. Now the user has a choice of selecting the timezone he wants to create the validation date for from a list of cities (for example he chooses London which is GMT +00:00). How can I know if London had the DST active or not at that moment, and if it is how much is the DST for like +1 +2 and so on...
Regards