gl-country-timezone

1.2.0 • Public • Published

gl-country-timezone

Find timezone with city name, country name and country code

Install

npm install gl-country-timezone --save

OR install with yarn

yarn add gl-country-timezone

Get time with city name, country name and country code

import countryTimezone from 'gl-country-timezone';

const timezonesWithCountryName = countryTimezone.getTimezones('India');
const timezonesWithCityName = countryTimezone.getTimezones('New Delhi');
const timezonesWithCode = countryTimezone.getTimezonesWithCountryCode('IN');

console.log(timezonesWithCountryName, timezonesWithCityName, timezonesWithCode, );
// [ 'Asia/Kolkata' ] [ 'Asia/Kolkata' ] [ 'Asia/Kolkata' ]

Package Sidebar

Install

npm i gl-country-timezone

Weekly Downloads

3

Version

1.2.0

License

MIT

Unpacked Size

1.08 MB

Total Files

5

Last publish

Collaborators

  • haresh.hanat