@commuted/local_time

1.0.1 • Public • Published

local_time

From geo coordinates return local time using timezone and daylight savings time.

Uses local tables for embedding in a device without connectivity which has access to geo coordinates, such as GPS/GLONAS/GALILEO.

valid range 1900 - 2250

Usage:

npm install @commuted/local_time, or just npm install in git repository to get dependancies.

Create file with these lines with epoch time and location var what_time = require('@commuted/local_time') console.log(what_time.get_local_correction(1528616801, 47.650499, -122.350070));

Returns correction in seconds.

valid input range 1900 - 2250

NOTE: In my util repo there is a script to update this file with and additional pruning feture. You can remove leading data, override the default 1900 or limit future data.

Package Sidebar

Install

npm i @commuted/local_time

Weekly Downloads

3

Version

1.0.1

License

Apache-2.0

Unpacked Size

7.94 MB

Total Files

5

Last publish

Collaborators

  • commuted