airport-tz

0.1.5 • Public • Published

airport-timezone

The package is used to look for timezone based on airport IATA codes.

Install

npm install --save airport-tz

Retreive Timezone

    
    var airport_tz = require('airport-tz');

    var IATA = 'NYC';
    var timezone_obj = airport_tz.findWhere({ iata: IATA });
    
    console.log('Searching timezone for: ' + IATA); //Searching timezone for: NYC
    console.log('Timezone: ' + timezone_obj.get('timezone')); // Timezone: America/New_York
    console.log('GMT: ' + timezone_obj.utcOffset()); //GMT: -5

Readme

Keywords

Package Sidebar

Install

npm i airport-tz

Weekly Downloads

93

Version

0.1.5

License

ISC

Last publish

Collaborators

  • donle