Get current time with a phone number

后端 未结 3 705
情深已故
情深已故 2020-11-29 13:00

I want to write an RoR mobile app which gives me the current time at the country for a given phone number, with its area code. Is there a good api for this?

3条回答
  •  伪装坚强ぢ
    2020-11-29 13:34

    This can help you map country codes to country names https://github.com/hexorx/countries

    Countries is a collection of all sorts of useful information for every country in the ISO 3166 standard. It contains info for the following standards ISO3166-1(countries), ISO3166-2(states/subdivisions), ISO4217(currency) and E.164(phone numbers). The gem also adds a country_select helper. I will add any country based data I can get access to. I hope this to be a repository for all country based information.

提交回复
热议问题