Timezones now in use
Hi. In the pytz Python library, I provide a list of common time zones. This list can be used to generate lists of available time zones for a user to select from. I'm currently generating this list simply by taking all timezones and removing: - Those listed in the backwards file - Those that have a single path component except GMT and UTC - Those that start with Etc/ - Those that start with SystemV/ This still leaves some false positives though, such as US/Pacific-New. Is there a better way I should be generating this list? Or do I just need to blacklist irrelevant time zones as they are reported? -- Stuart Bishop <stuart@stuartbishop.net> http://www.stuartbishop.net/
On Tue, 27 Mar 2007, Stuart Bishop wrote:
In the pytz Python library, I provide a list of common time zones. This list can be used to generate lists of available time zones for a user to select from.
I'm currently generating this list simply by taking all timezones and removing: - Those listed in the backwards file - Those that have a single path component except GMT and UTC - Those that start with Etc/ - Those that start with SystemV/
This still leaves some false positives though, such as US/Pacific-New.
I would suggest also to remove the US/ and Canada/ ones... afaik they should not really be used anymore. regards, Derick -- Derick Rethans http://derickrethans.nl | http://ez.no | http://xdebug.org
On Tuesday, March 27 2007, "Stuart Bishop" wrote to "Timezone mailing list" saying:
Hi.
In the pytz Python library, I provide a list of common time zones. This list can be used to generate lists of available time zones for a user to select from.
I'm currently generating this list simply by taking all timezones and removing: - Those listed in the backwards file - Those that have a single path component except GMT and UTC - Those that start with Etc/ - Those that start with SystemV/
This still leaves some false positives though, such as US/Pacific-New.
Is there a better way I should be generating this list? Or do I just need to blacklist irrelevant time zones as they are reported?
You're probably better off using the zones listed in the file zone.tab. This also provides user-friendly descriptions of what geographic area each zone covers. -- Jonathan Lennox lennox@cs.columbia.edu
participants (3)
-
Derick Rethans -
Jonathan Lennox -
Stuart Bishop