Get current time with phone number

I want to write a RoR mobile application that gives me the current time in the country for a given phone number, with its regional code. Is there any good api for this?

+1
source share
3 answers

Not a good idea.

What will you do for countries with multiple time zones and many regional codes? There is not necessarily a one-to-one mapping of a time zone to a zone code.

, 928 , , - , - . 928.

- 605 . , .

, .

, . , 3 , , .

+1

Javascript , ChronoMouse.js, , , , , , /, .

.

:

console.log( getLocalInfo('+49').time.display );

// 15:07

. www.chronomouse.com.

. .

0

https://github.com/hexorx/countries

ISO 3166. ISO3166-1 (), ISO3166-2 (/), ISO4217 () E.164 ( ). country_select. - , . , , .

-2

Source: https://habr.com/ru/post/1702268/


All Articles