Raycast Time Zone Converter: Now with Time Ranges

While I’ve used my Raycast Timezone Converter daily and have been happy with it, there’s always been a major missing feature: support for time ranges. While it’s great to convert a start time, I end up manually adding end times, which, let’s be honest, is downright silly when we have computers.

Well, I’ve fixed that, while keeping the base functionality and ease of use. In fact, I levelled it up considerably. 

Before this process, I had no idea that there are over 600 combinations of time zones and cities in the database used by the apps we rely on. For example, Chicago, Belize, Mexico City, Saskatchewan, and the Galapagos Islands have the same offset from Greenwich (-6) and are included in the comprehensive list. 

That said, there are gaps. For example, my hometown of Austin is absent, as are many other large cities. So the extension supports a bunch of aliases.

Ranges

To the heart of the change: you can now specify a time range with natural language:

  • 1pm - 3pm
  • 1pm to 3pm
  • 11pm through 1am
  • 2pm until 4pm.
  • next Friday 1pm - 3pm
  • Thursday 9am to 11am

Format

The extension continues to support two output formats (inline and list). For example, you could enter 1pm - 3pm for the time and Austin, London, Sydney for the locations and have it output as either:

Inline

1:00 PM - 3:00 PM Austin / 9:00 PM - 11:00 PM London / 6:00 AM - 8:00 AM Sydney

List

β€’ 1:00 PM - 3:00 PM Austin
β€’ 9:00 PM - 11:00 PM London
β€’ 6:00 AM - 8:00 AM Sydney

(I use the bullet character (β€’) for appearance, but to ensure support in plaintext, it doen't paste as a proper list in apps like Gmail or Word.)

Overnight ranges

Working with global teams sometimes results in dealing with different days, not just different hours. So, when a time range crosses midnight in any output timezone, or when the input includes an explicit date, the extension will include day labels :

  • 11:00 PM (Friday) - 12:00 AM (Saturday) Austin
  • 5:00 AM - 6:00 AM (Saturday) London
  • 3:00 PM - 4:00 PM (Saturday) Sydney

A range that stays within the same day gets one label after the end time. One that crosses midnight gets a label on each side.

Timezone coverage

As noted above, the extension now uses the JavaScript Intl API, which covers roughly 600 IANA timezones. That means that most city, country, and region names work out of the box.

There's also a curated list to handle what the native API misses, including standard abbreviations, airport codes (NYC, LAX, SFO, LHR, CDG, DXB, NRT, among many others), and informal names (howdy ATX!).

Abbreviations

There are now over 350 abbreviations.

Africa

  • EAT β†’ East Africa Time (Nairobi)
  • SAST β†’ South Africa Standard Time (Johannesburg)
  • CAT β†’ Central Africa Time (Harare)
  • WAT β†’ West Africa Time (Lagos)

Cities & Airport Codes

  • JNB / SOUTH AFRICA / CPT / CAPE TOWN / DUR / DURBAN β†’ Johannesburg
  • NBO / KENYA / MBA / MOMBASA β†’ Nairobi
  • CAI / EGYPT β†’ Cairo
  • LOS / NIGERIA β†’ Lagos
  • ACC / GHANA β†’ Accra
  • CMN / MOROCCO β†’ Casablanca
  • ADD / ADDIS ABABA / ETHIOPIA β†’ Addis Ababa
  • DAR ES SALAAM / TANZANIA β†’ Dar es Salaam
  • ALG / ALGERIA β†’ Algiers
  • TIP / LIBYA β†’ Tripoli
  • KRT / SUDAN β†’ Khartoum
  • ABJ / IVORY COAST β†’ Abidjan
  • DKR / SENEGAL β†’ Dakar
  • UGANDA β†’ Kampala
  • ZIMBABWE β†’ Harare
  • ZAMBIA β†’ Lusaka
  • TUNISIA β†’ Tunis

Asia

  • IST / INDIA β†’ India Standard Time (Kolkata)
  • JST β†’ Japan Standard Time (Tokyo)
  • KST β†’ Korea Standard Time (Seoul)
  • CST-CN β†’ China Standard Time (Shanghai)
  • HKT β†’ Hong Kong Time
  • SGT β†’ Singapore Time
  • PHT β†’ Philippine Time (Manila)
  • ICT β†’ Indochina Time (Bangkok)
  • WIB β†’ Western Indonesia Time (Jakarta)
  • GST β†’ Gulf Standard Time (Dubai)
  • PKT β†’ Pakistan Standard Time (Karachi)
  • BDT β†’ Bangladesh Standard Time (Dhaka)
  • NPT β†’ Nepal Time (Kathmandu)
  • MMT β†’ Myanmar Time (Yangon)

Cities & Airport Codes

  • NRT / HND / JAPAN / OSAKA β†’ Tokyo
  • ICN / KOREA β†’ Seoul
  • PVG / PEK / BEIJING / CHINA β†’ Shanghai
  • HKG / HONG KONG β†’ Hong Kong
  • SIN β†’ Singapore
  • BOM / MUMBAI / DEL / DELHI / NEW DELHI β†’ Kolkata
  • BLR / BANGALORE / MAA / CHENNAI / MADRAS β†’ Kolkata
  • HYD / HYDERABAD / COK β†’ Kolkata
  • MNL / PHILIPPINES β†’ Manila
  • BKK / THAILAND / HAN / HANOI β†’ Bangkok
  • CGK / INDONESIA β†’ Jakarta
  • KUL / MALAYSIA β†’ Kuala Lumpur
  • DXB / UAE / AUH / ABU DHABI β†’ Dubai
  • DOH / DOHA / QATAR β†’ Qatar
  • RUH / SAUDI ARABIA / JED / JEDDAH β†’ Riyadh
  • TLV / TEL AVIV / ISRAEL β†’ Jerusalem
  • KHI / PAKISTAN / ISB / ISLAMABAD / LHE / LAHORE β†’ Karachi
  • DAC / BANGLADESH β†’ Dhaka
  • KTM / NEPAL β†’ Kathmandu
  • CMB / SRI LANKA β†’ Colombo
  • RGN / MYANMAR β†’ Yangon
  • SGN / SAIGON / VIETNAM β†’ Ho Chi Minh City
  • PNH / CAMBODIA β†’ Phnom Penh
  • VTE / LAOS β†’ Vientiane

Europe

  • GMT / BST β†’ London
  • UTC β†’ UTC
  • WET / WEST β†’ Lisbon
  • CET / CEST β†’ Central European Time (Paris)
  • EET / EEST β†’ Eastern European Time (Helsinki)
  • MSK β†’ Moscow Time
  • IST β†’ India Standard Time (Kolkata) β€” see Asia section
  • IST-IE β†’ Irish Standard Time (Dublin)
  • IST-EU β†’ Turkey Time (Istanbul)

Cities & Airport Codes

  • LHR / LGW / UK / ENGLAND β†’ London
  • BHX / BIRMINGHAM / MAN / MANCHESTER β†’ London
  • CDG / FRANCE β†’ Paris
  • FRA / GERMANY / HAM / HAMBURG / MUC / MUNICH β†’ Berlin
  • AMS / NETHERLANDS β†’ Amsterdam
  • MAD / SPAIN / BCN / BARCELONA β†’ Madrid
  • AGP / MALAGA / VLC / VALENCIA / SEVILLA / SEVILLE β†’ Madrid
  • FCO / ITALY / MXP / MILAN β†’ Rome
  • ZRH / SWITZERLAND / GVA / GENEVA / BERN β†’ Zurich
  • VIE / AUSTRIA β†’ Vienna
  • ARN / SWEDEN β†’ Stockholm
  • OSL / NORWAY β†’ Oslo
  • CPH / DENMARK β†’ Copenhagen
  • HEL / FINLAND β†’ Helsinki
  • WAW / POLAND β†’ Warsaw
  • PRG β†’ Prague
  • BUD β†’ Budapest
  • ATH / GREECE β†’ Athens
  • LIS / PORTUGAL β†’ Lisbon
  • BRU / BELGIUM β†’ Brussels
  • SVO / RUSSIA / LED / SAINT PETERSBURG / ST PETERSBURG β†’ Moscow
  • TURKEY β†’ Istanbul
  • IRELAND β†’ Dublin
  • KBP / KIEV / UKRAINE β†’ Kyiv

North America

  • EST / EDT / ET / EASTERN β†’ Eastern Time
  • CST / CDT / CT / CENTRAL β†’ Central Time
  • MST / MDT / MT / MOUNTAIN β†’ Mountain Time
  • PST / PDT / PT / PACIFIC β†’ Pacific Time
  • AKST / AKDT β†’ Alaska Time
  • HST β†’ Hawaii Time
  • AST / ADT β†’ Atlantic Time (Halifax)
  • NST / NDT β†’ Newfoundland Time

Cities & Airport Codes

  • NYC / NEW YORK / NEW YORK CITY / BOS / BOSTON β†’ Eastern (New York)
  • ATL / ATLANTA / MIA / MIAMI β†’ Eastern (New York)
  • PHL / PHILADELPHIA / PHILLY / CLT / CHARLOTTE β†’ Eastern (New York)
  • JAX / JACKSONVILLE / CMH / COLUMBUS β†’ Eastern (New York)
  • DC / WASHINGTON / WASHINGTON DC β†’ Eastern (New York)
  • DTW β†’ Eastern (Detroit)
  • IND β†’ Eastern (Indianapolis)
  • LAX / LOS ANGELES / LA / SFO / SAN FRANCISCO / SF β†’ Pacific (Los Angeles)
  • SEA / SEATTLE / SAN / SAN DIEGO β†’ Pacific (Los Angeles)
  • SJC / SAN JOSE / PDX / PORTLAND β†’ Pacific (Los Angeles)
  • LAS / LAS VEGAS β†’ Pacific (Los Angeles)
  • ORD / CHI β†’ Central (Chicago)
  • DFW / DALLAS / ATX / AUS / AUSTIN β†’ Central (Chicago)
  • HOU / HOUSTON / SAT / SAN ANTONIO β†’ Central (Chicago)
  • MSP / MINNEAPOLIS / BNA / NASHVILLE β†’ Central (Chicago)
  • OKC / OKLAHOMA CITY / FORT WORTH β†’ Central (Chicago)
  • DEN β†’ Mountain (Denver)
  • SLC / SALT LAKE CITY β†’ Mountain (Denver)
  • PHX / ARIZONA β†’ Mountain (Phoenix)
  • YYZ β†’ Eastern (Toronto)
  • YUL / MONTREAL β†’ Eastern (Montreal)
  • YVR / YYJ / VICTORIA β†’ Pacific (Vancouver)
  • YYC / CALGARY / YEG β†’ Mountain (Edmonton)
  • MEX / MEXICO β†’ Central (Mexico City)
  • HAV / CUBA β†’ Cuba Time (Havana)

Oceania

  • AEST / AEDT β†’ Australian Eastern Time (Sydney)
  • ACST β†’ Australian Central Standard Time (Darwin)
  • ACDT β†’ Australian Central Daylight Time (Adelaide)
  • AWST β†’ Australian Western Time (Perth)
  • NZST / NZDT β†’ New Zealand Time (Auckland)

Cities & Airport Codes

  • SYD / AUSTRALIA / CBR / CANBERRA β†’ Sydney
  • MEL β†’ Melbourne
  • BNE β†’ Brisbane
  • PER β†’ Perth
  • ADL β†’ Adelaide
  • AKL / NEW ZEALAND / NZ / WLG / WELLINGTON / CHC / CHRISTCHURCH β†’ Auckland
  • FIJI β†’ Fiji
  • HAWAII β†’ Honolulu

South America

Cities & Airport Codes

  • GRU / SAO PAULO / BRAZIL / GIG / RIO / RIO DE JANEIRO β†’ SΓ£o Paulo
  • EZE / BUENOS AIRES / ARGENTINA β†’ Buenos Aires
  • SCL / CHILE β†’ Santiago
  • BOG / COLOMBIA β†’ BogotΓ‘
  • LIM / PERU β†’ Lima
  • UIO / QUITO / ECUADOR β†’ Guayaquil
  • CCS / CARACAS / VENEZUELA β†’ Caracas
  • MVD / URUGUAY β†’ Montevideo

Let me know if you have questions or ideas!