Get country data by timezone string.
Timezone data used here is from IANA Database.
npm i country-by-timezone
import getCountryByTimezone from "country-by-timezone";
const country = getCountryByTimezone("Asia/Kolkata");
console.log(country);
/*
{
countryCode: 'IN',
countryName: 'India',
timeZone: 'Asia/Kolkata',
coordinates: [ '20.0000', '77.0000' ]
}
*/
Get country information by timezone string.
type:
string | string[]
A timezone string or string[] ex:Asia/Kolkata