vvo / tzdb

🕰 Simplified, grouped and always up to date list of time zones, with major cities

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add 'names' filter to getTimeZones

AndreyLinetsky opened this issue · comments

Hi,
is it possible to add filter option to getTimeZones function?
This way we can avoid pulling whole list.

Thanks

@AndreyLinetsky can you filter on your side? I am not sure to understand why you would want for the API of tzdb to do that by default.

Thanks!

@vvo first of all thanks for your response.

I am already filtering on my side but it happens only after getTimeZones function runs on 300+ timezones and then sorts them.

I thought it will be faster not to perform any operations + sorting on the irrelevant timezones.