0.9.2 • Published 8 months ago
@hebcal/noaa v0.9.2
@hebcal/noaa
sunrise and sunset via NOAA algorithm with elevation, based on KosherJava
Introduction
This is a fork/subset of KosherZmanim library with Temporal replacing usage of Luxon.
Kosher Zmanim itself is a TS/JS port of the KosherJava library.
Installation
$ npm install @hebcal/noaaSynopsis
import {GeoLocation, NOAACalculator} from '@hebcal/noaa';
import {Temporal} from 'temporal-polyfill';
const latitude = 39.73915;
const longitude = -104.9847;
const elevtion = 1636;
const tzid = 'America/Denver';
const gloc = new GeoLocation(null, latitude, longitude, elevtion, tzid);
const plainDate = new Temporal.PlainDate(2020, 6, 5); // Friday June 5 2020
const noaa = new NOAACalculator(gloc, plainDate);
const zdt = noaa.getSunset();
console.log(zdt.toString()); // '2020-06-05T20:32:57.848-06:00[America/Denver]'API Documentation
0.8.16
1 year ago
0.8.15
1 year ago
0.9.2
8 months ago
0.9.1
9 months ago
0.8.14
2 years ago
0.8.13
2 years ago
0.8.12
2 years ago
0.8.11
2 years ago
0.8.10
2 years ago
0.8.9
2 years ago
0.8.8
2 years ago
0.8.7
2 years ago
0.8.6
2 years ago
0.8.5
2 years ago
0.8.4
2 years ago
0.8.3
2 years ago
0.8.2
2 years ago
0.8.1
2 years ago
0.8.0
2 years ago