View Source DateTimeParser.TimezoneAbbreviations (DateTimeParser v1.2.0)

Fetch timezone information by name or by abbreviations. This is designed to power parsing strings with timezone abbreviations and offsets in them.

Summary

Functions

Link to this function

all_abbreviations(ndt \\ NaiveDateTime.utc_now())

View Source

Default abbreviations

%{
  "PACIFIC" => "America/New_York",
  "MT" => "America/Denver",
  "HAST" => "Pacific/Honolulu",
  "RMT" => "Europe/Rome",
  "QMT" => "America/Guayaquil",
  "EASTERN" => "America/New_York",
  "-05" => "Etc/GMT+5",
  "HAWAII" => "America/New_York",
  "CPT" => "America/Belize",
  "TBMT" => "Asia/Tbilisi",
  "-08" => "Etc/GMT+8",
  "HKWT" => "Asia/Hong_Kong",
  "AEST" => "Australia/Sydney",
  "GMT/BST" => "Europe/London",
  "EET/EEST" => "EET",
  "-03" => "Etc/GMT+3",
  "MSD" => "Europe/Moscow",
  "ADT" => "America/Halifax",
  "ALASKA" => "America/New_York",
  "IMT" => "Europe/Istanbul",
  "FFMT" => "America/Martinique",
  "YDDT" => "Canada/Yukon",
  "NZDT" => "Pacific/Auckland",
  "CENTRAL" => "America/Chicago",
  "IST" => "Asia/Kolkata",
  "-01" => "Etc/GMT+1",
  "EMT" => "Pacific/Easter",
  "YDT" => "Canada/Yukon",
  "EEST" => "EET",
  "NWT" => "Canada/Newfoundland",
  "BDST" => "Europe/London",
  "BMT" => "Europe/London",
  "JMT" => "Asia/Jerusalem",
  "MDST" => "Europe/Moscow",
  "MOUNTAIN" => "America/New_York",
  "YPT" => "Canada/Yukon",
  "MSK/MSD" => "Europe/Moscow",
  "AWT" => "America/Halifax",
  "-04/-03" => "America/Santiago",
  "+10" => "Etc/GMT-10",
  "SDMT" => "America/Santo_Domingo",
  "+11" => "Etc/GMT-11",
  "WEMT" => "WET",
  "WEST" => "WET",
  "ADDT" => "America/Goose_Bay",
  "+14" => "Etc/GMT-14",
  "HWT" => "Pacific/Honolulu",
  "+04/+05" => "Asia/Baku",
  "APT" => "Canada/Atlantic",
  "NPT" => "Asia/Katmandu",
  "+11/+12" => "Pacific/Noumea",
  "PMT" => "Europe/Paris",
  "NDDT" => "Canada/Newfoundland",
  "+12/+13" => "Pacific/Fiji",
  "+12" => "Etc/GMT-12",
  "-04" => "Etc/GMT+4",
  "+06" => "Etc/GMT-6",
  "WAST" => "Africa/Lagos",
  "KST" => "Asia/Seoul",
  "-02" => "Etc/GMT+2",
  "-01/+00" => "Atlantic/Azores",
  "-11" => "Etc/GMT+11",
  "GMT" => "Etc/UTC",
  "DMT" => "Europe/Dublin",
  "MST" => "America/Denver",
  "-0430" => "America/Caracas",
  "LHDT" => "Australia/Lord_Howe",
  "CET" => "CET",
  "CWT" => "America/Belize",
  "+13/+14" => "Pacific/Tongatapu",
  "+07" => "Etc/GMT-7",
  "BST" => "Europe/London",
  "WMT" => "Europe/Warsaw",
  "AEDT" => "Australia/Sydney",
  "+03" => "Etc/GMT-3",
  "NZMT" => "Pacific/Auckland",
  "GST" => "Asia/Dubai",
  "AHDT" => "America/Anchorage",
  "+05" => "Etc/GMT-5",
  "WET/WEST" => "WET",
  "+08" => "Etc/GMT-8",
  "WET" => "WET",
  "HAT" => "Pacific/Honolulu",
  "HKT" => "Asia/Hong_Kong",
  "WAT" => "Africa/Lagos",
  "SJMT" => "America/Costa_Rica",
  "-09" => "Etc/GMT+9",
  "-06/-05" => "Pacific/Galapagos",
  "AHST" => "America/Anchorage",
  "PLMT" => "Asia/Ho_Chi_Minh",
  "BT" => "Europe/London",
  "HST" => "Pacific/Honolulu",
  "CDT" => "America/Chicago",
  "LST" => "Europe/Riga",
  "CAT" => "Africa/Maputo",
  "FMT" => "Atlantic/Madeira",
  "CEMT" => "Europe/Berlin",
  "+04" => "Etc/GMT-4",
  "CT" => "America/Chicago",
  "+02" => "Etc/GMT-2",
  "EDT" => "America/New_York",
  "ACST" => "Australia/Adelaide",
  "YWT" => "Canada/Yukon",
  "MDT" => "America/Denver",
  "EET" => "EET",
  "+08/+09" => "Asia/Ulaanbaatar",
  "+1215" => "Pacific/Chatham",
  "ET" => "America/New_York",
  "AST" => "Canada/Atlantic",
  "BMT/BST" => "Europe/London",
  "PDT" => "America/Los_Angeles",
  "ACT" => "Australia/Adelaide",
  "-05/-04" => "America/Bogota",
  "PT" => "America/Los_Angeles",
  "CET/CEST" => "CET",
  "CEST" => "CET",
  "GMT/IST" => "Etc/UTC",
  "YST" => "Canada/Yukon",
  "PMMT" => "Pacific/Bougainville",
  "+01/+00" => "Africa/Casablanca",
  "ACDT" => "Australia/Adelaide",
  "+13" => "Etc/GMT-13",
  "ACWST" => "Australia/Eucla",
  "MSDT" => "Europe/Moscow",
  "AET" => "Australia/Sydney",
  "CAST" => "Australia/Adelaide",
  "CHST" => "Pacific/Guam",
  "MSK" => "Europe/Moscow",
  "BT/BST" => "Europe/London",
  "AMT" => "Asia/Yerevan",
  "-10" => "Etc/GMT+10",
  "AWST" => "Australia/Perth",
  "WIB" => "Asia/Jakarta",
  "PPMT" => "America/Port-au-Prince",
  "HPT" => "Pacific/Honolulu",
  "HADT" => "Pacific/Honolulu",
  "HMT" => "Etc/GMT+5",
  "AKDT" => "America/Anchorage",
  "PST" => "America/Los_Angeles",
  "CMT" => "America/Buenos_Aires",
  "+1130" => "Pacific/Norfolk",
  "AKST" => "America/Anchorage",
  "+09" => "Etc/GMT-9",
  "EST" => "America/New_York",
  "MMT" => "Asia/Yangon",
  "-03/-02" => "America/Buenos_Aires",
  "-02/-01" => "Europe/Lisbon",
  "CST" => "America/Chicago"
}

Default offsets

%{
  "+0000" => "Etc/UTC",
  "+0100" => "Etc/GMT-1",
  "+0200" => "Etc/GMT-2",
  "+0300" => "Etc/GMT-3",
  "+0400" => "Etc/GMT-4",
  "+0500" => "Etc/GMT-5",
  "+0530" => "Asia/Colombo",
  "+0600" => "Etc/GMT-6",
  "+0700" => "Etc/GMT-7",
  "+0800" => "Etc/GMT-8",
  "+0900" => "Etc/GMT-9",
  "+0930" => "Australia/Adelaide",
  "+1000" => "Etc/GMT-10",
  "+1100" => "Etc/GMT-11",
  "+1200" => "Etc/GMT-12",
  "+1300" => "Etc/GMT-13",
  "+1400" => "Etc/GMT-14",
  "-0000" => "Etc/UTC",
  "-0100" => "Etc/GMT+1",
  "-0200" => "Etc/GMT+2",
  "-0300" => "Etc/GMT+3",
  "-0400" => "Etc/GMT+4",
  "-0500" => "Etc/GMT+5",
  "-0530" => "America/Belize",
  "-0600" => "Etc/GMT+6",
  "-0700" => "Etc/GMT+7",
  "-0800" => "Etc/GMT+8",
  "-0900" => "Etc/GMT+9",
  "-1000" => "Etc/GMT+10",
  "-1100" => "Etc/GMT+11"
}
Link to this function

zone_by_abbreviation(abbreviation, opts \\ [])

View Source
Link to this function

zone_by_offset(offset, opts \\ [])

View Source
Link to this function

zones_by_abbreviation(abbreviation, opts \\ [])

View Source
Link to this function

zones_by_name(name, opts \\ [])

View Source
Link to this function

zones_by_offset(offset, opts \\ [])

View Source