Windows XP timezone language issue

Paul Sijben paul.sijben at xs4all.nl
Thu Jun 14 03:14:50 EDT 2007


MRAB wrote:
> On Jun 13, 7:31 am, Paul Sijben <paul.sij... at xs4all.nl> wrote:
>> I ran into an internationalization issue. I need a consistent idea about
>> the timezone my application is running on. However when I run the following:
>>  >>> import time
>>  >>> time.tzname
>>
>> I get back ('West-Europa (standaardtijd)', 'West-Europa (zomertijd)')
>> which is in dutch (the language of the host machine) and verbose.
>> I wanted to get ('CEST','CET') or something international so I can work
>> with itin the same way on all platforms.
>>
>> That is the right way to find out the timezone in a consistent way
>> across platforms (windows/linux/mac) and languages?
>>
> Well, time.timezone will return the timezone as an integer.
> 
true, I am wondering if that is enough for my app. (with some of the odd 
timezones in the world and DTS issues and all....




More information about the Python-list mailing list