Package Exports
- gettimeofday-by-zipcode
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (gettimeofday-by-zipcode) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
what is this?
Get daytime and nighttime based on the zipcode
Installation
npm install gettimeofday-by-zipcode
npm install moment-timezone
npm install zipcode-to-timezoneconst timeOfTheday = require('gettimeofday-by-zipcode');
const ZIP_CODE = "01850";
timeOfTheday.getTimeofTheDays(ZIP_CODE);
Description
The code above will return either a daytime or nighttime depending on the current time of the zipcode.