rinvex / countries

Rinvex Country is a simple and lightweight package for retrieving country details with flexibility. A whole bunch of data including name, demonym, capital, iso codes, dialling codes, geo data, currencies, flags, emoji, and other attributes for all 250 countries worldwide at your fingertips.
https://rinvex.com
MIT License
1.64k stars 206 forks source link

Feature Request: Method to Retrieve Timezones Based on Division #247

Open andrewdwallo opened 11 months ago

andrewdwallo commented 11 months ago

Description

I propose the introduction of a method that returns an array of available timezones based on a division (state or region). This would supplement the existing getDivisions() and getDivision() methods and enhance the package's utility for developers working on location-based services.

Use Case

In a web application with global reach, a developer could use getDivision() to populate a dropdown list with states or regions based on a country. Additionally, with this proposed feature, they could then dynamically populate a dropdown list of timezones based on the selected division (or get the timezone for the selected division).

Additional Context

By providing this feature, developers can offer users a more streamlined and relevant set of timezone options, improving overall user experience.