Created
November 11, 2011 14:52
-
-
Save azampagl/1358171 to your computer and use it in GitHub Desktop.
State to timezone conversion.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Matches a state to its timezone (if it has only one). | |
# | |
# Commented out fields mean that the state | |
# has multiple timezones or was unknown at the time. | |
# | |
# @author Aaron Zampaglione <[email protected]> | |
# @copyright 2011 Aaron Zampaglione | |
# @license MIT | |
# | |
statetmzs = { | |
#'AA': # ARMED FORCES AMERICAS | |
#'AE': # ARMED FORCES MIDDLE EAST | |
#'AK': # ALASKA | |
#'AL': # ALABAMA | |
#'AP': # Armed Forces Pacific | |
'AR': 'America/Chicago', # ARKANSAS | |
#'AS': # AMERICAN SAMOA | |
#'AZ': # ARIZONA | |
'CA': 'America/Los_Angeles', # CALIFORNIA | |
'CO': 'America/Denver', # COLORADO | |
'CT': 'America/New_York', # CONNECTICUT | |
'DC': 'America/New_York', # DISTRICT OF COLUMBIA | |
'DE': 'America/New_York', # DELAWARE | |
#'FL': # FLORIDA | |
#'FM': # FEDERATED STATES OF MICRONESIA | |
'GA': 'America/New_York', # GEORGIA | |
'GU': 'Pacific/Guam', # GUAM | |
'HI': 'Pacific/Honolulu', # HAWAII | |
'IA': 'America/Chicago', # IOWA | |
#'ID': # IDAHO | |
'IL': 'America/Chicago', # ILLINOIS | |
#'IN': # INDIANA | |
#'KS': # KANSAS | |
#'KY': # KENTUCKY | |
'LA': 'America/Chicago', # LOUISIANA | |
'MA': 'America/New_York', # MASSACHUSETTS | |
'MD': 'America/New_York', # MARYLAND | |
'ME': 'America/New_York', # MAINE | |
#'MH': # MARSHALL ISLANDS | |
'MI': 'America/Detroit', # MICHIGAN | |
'MN': 'America/Chicago', # MINNESOTA | |
'MO': 'America/Chicago', # MISSOURI | |
#'MP': # NORTHERN MARIANA ISLANDS | |
'MS': 'America/Chicago', # MISSISSIPPI | |
'MT': 'America/Denver', # MONTANA | |
'NC': 'America/New_York', # NORTH CAROLINA | |
#'ND': # NORTH DAKOTA | |
#'NE': # NEBRASKA | |
'NH': 'America/New_York', # NEW HAMPSHIRE | |
'NJ': 'America/New_York', # NEW JERSEY | |
'NM': 'America/Denver', # NEW MEXICO | |
#'NV': # NEVADA | |
'NY': 'America/New_York', # NEW YORK | |
'OH': 'America/New_York', # OHIO | |
'OK': 'America/Chicago', # OKLAHOMA | |
#'OR': # OREGON | |
'PA': 'America/New_York', # PENNSYLVANIA | |
'PR': 'America/Puerto_Rico', # PUERTO RICO | |
'PW': 'Pacific/Palau', # PALAU | |
'RI': 'America/New_York', # RHODE ISLAND | |
'SC': 'America/New_York', # SOUTH CAROLINA | |
#'SD': # SOUTH DAKOTA | |
#'TN': # TENNESSEE | |
#'TX': # TEXAS | |
'UT': 'America/Denver', # UTAH | |
'VA': 'America/New_York', # VIRGINIA | |
#'VI': # VIRGIN ISLANDS | |
'VT': 'America/New_York', # VERMONT, | |
'WA': 'America/Los_Angeles', # WASHINGTON | |
'WI': 'America/Chicago', # WISCONSIN | |
'WV': 'America/New_York', # WEST VIRGINIA | |
'WY': 'America/Denver', # WYOMING | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment