Skip to content

Find timezone with city name, country name and country code

License

Notifications You must be signed in to change notification settings

mountainfirefly/country-timezone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

country-timezone

Find timezone with city name, country name and country code

Install

npm install country-timezone --save

OR install with yarn

yarn add country-timezone

Get time with city name, country name and country code

import countryTimezone from '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' ]

About

Find timezone with city name, country name and country code

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published