Function getTimeZoneNames

  • Retrieves the names of different time zones categorized by region.

    Returns TimezoneNames

    An object containing the names of time zones categorized by region. The object has the following properties:

    • all: A array of all time zone names.
    • africa: A array of time zone names in Africa.
    • usa: A array of time zone names in the United States.
    • canada: A array of time zone names in Canada.
    • brazil: A array of time zone names in Brazil.
    • mexico: A array of time zone names in Mexico.
    • antarctica: A array of time zone names in Antarctica.
    • indian: A array of time zone names in the Indian Ocean.
    • atlantic: A array of time zone names in the Atlantic Ocean.
    • australia: A array of time zone names in Australia.
    • europe: A array of time zone names in Europe.
    • arctic: A array of time zone names in the Arctic Ocean.
    • pacific: A array of time zone names in the Pacific Ocean.
    • chile: A array of time zone names in Chile.
    • asia: A array of time zone names in Asia.
    • america: A array of time zone names in the Americas.
    const timezoneNamesInAsia: TimezoneNames = getTimeZoneNames();
    console.log(timezoneNamesInAsia.asia);