Windows XP timezone language issue

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Paul Sijben

    #1

    Windows XP timezone language issue

    I ran into an internationaliz ation 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?

    Paul
  • MRAB

    #2
    Re: Windows XP timezone language issue

    On Jun 13, 7:31 am, Paul Sijben <paul.sij...@xs 4all.nlwrote:
    I ran into an internationaliz ation 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.

    Comment

    • Paul Sijben

      #3
      Re: Windows XP timezone language issue

      MRAB wrote:
      On Jun 13, 7:31 am, Paul Sijben <paul.sij...@xs 4all.nlwrote:
      >I ran into an internationaliz ation 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....

      Comment

      Working...