0.1.5 • Published 7 years ago

airport-tz v0.1.5

Weekly downloads
44
License
ISC
Repository
github
Last release
7 years ago

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
0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago