Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose the full zone.tab file as pytz.zone_tab. #29

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Aug 1, 2019

  1. Expose the full zone.tab file as pytz.zone_tab.

    In Python 2.6+, every entry in pytz.zone_tab is a named tuple with fields code, coordinates, zone, and comment, as in:
    
      >>> [row for row in pytz.zone_tab if row.zone == 'America/Los_Angeles'][0].comment
      'Pacific'
    
    In all versions, pytz.zone_tab's entries are iterable as a set of values in that order:
    
      >>> code, coordinates, zone, comment = pytz.zone_tab[399]
      >>> zone, comment
      (u'America/Los_Angeles', u'Pacific')
    
    See https://bugs.launchpad.net/pytz/+bug/1324972 (and nmlorg/metabot#52).
    nmlorg committed Aug 1, 2019
    Configuration menu
    Copy the full SHA
    459b1bf View commit details
    Browse the repository at this point in the history