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?
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 , , .
Javascript , ChronoMouse.js, , , , , , /, .
.
:
console.log( getLocalInfo('+49').time.display ); // 15:07
. www.chronomouse.com.
. .
https://github.com/hexorx/countries
ISO 3166. ISO3166-1 (), ISO3166-2 (/), ISO4217 () E.164 ( ). country_select. - , . , , .
Source: https://habr.com/ru/post/1702268/More articles:Help with one step to create all projects + installer (.NET + WiX) - build-processUnit analysis of data flow in ssis pakage - unit-testingCalculation of a personβs time zone (GMT offset) by phone number? - sqldollar-finished strings - assemblyhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1702267/how-do-you-write-tests-to-test-functions-with-variable-return-values&usg=ALkJrhipHZSsEGVTHp2369jeWS83g5Kj3wAdding a field to a cloned TClientDataset in DELPHI - delphiBest practices for onload Javascript - javascriptDownload AS2 SWF to AS3 SWF and skip vars in URL - urlGradient populated with jQuery? - javascriptWhy is my ASP.NET CustomValidator not checking? - vb.netAll Articles