@hebcal/core
Advanced tools
Comparing version 1.0.13 to 1.0.14
@@ -15,3 +15,3 @@ declare module '@hebcal/core' { | ||
getFlags(): number; | ||
getAttrs(): number; | ||
getAttrs(): any; | ||
getDesc(): string; | ||
@@ -110,2 +110,41 @@ getDate(): HDate; | ||
/** | ||
* Class representing Location | ||
*/ | ||
export class Location { | ||
/** | ||
* Initialize a Location instance | ||
* @param latitude - Latitude as a decimal, valid range -90 thru +90 (e.g. 41.85003) | ||
* @param longitude - Longitude as a decimal, valid range -180 thru +180 (e.g. -87.65005) | ||
* @param il - in Israel (true) or Diaspora (false) | ||
* @param tzid - Olson timezone ID, e.g. "America/Chicago" | ||
* @param cityName - optional descriptive city name | ||
* @param countryCode - ISO 3166 alpha-2 country code (e.g. "FR") | ||
* @param geoid - optional numeric geographic ID | ||
*/ | ||
constructor(latitude: number, longitude: number, il: boolean, tzid: string, cityName?: string, countryCode?: string, geoid?: number); | ||
suntime(hdate: HDate): suncalc.GetTimesResult; | ||
sunrise(hdate: HDate): Date; | ||
sunset(hdate: HDate): Date; | ||
hour(hdate: HDate): number; | ||
hourMins(hdate: HDate): number; | ||
gregEve(hdate: HDate): Date; | ||
nightHour(hdate: HDate): number; | ||
nightHourMins(hdate: HDate): number; | ||
hourOffset(hdate: HDate, hours: number): Date; | ||
chatzot(hdate: HDate): Date; | ||
chatzotNight(hdate: HDate): Date; | ||
alotHaShachar(hdate: HDate): Date; | ||
misheyakir(hdate: HDate): Date; | ||
misheyakirMachmir(hdate: HDate): Date; | ||
sofZmanShma(hdate: HDate): Date; | ||
sofZmanTfilla(hdate: HDate): Date; | ||
minchaGedola(hdate: HDate): Date; | ||
minchaKetana(hdate: HDate): Date; | ||
plagHaMincha(hdate: HDate): Date; | ||
tzeit(hdate: HDate): Date; | ||
neitzHaChama(hdate: HDate): Date; | ||
shkiah(hdate: HDate): Date; | ||
} | ||
export namespace hebcal { | ||
@@ -235,2 +274,8 @@ /** | ||
export function hebrewCalendar(options: HebcalOptions): Event[]; | ||
export function makeAnchor(s: string): string; | ||
export function getHolidayBasename(s: string): string; | ||
export function getShortUrl(e: Event): string; | ||
export function getEventUrl(e: Event): string; | ||
export function reformatTimeStr(timeStr: string, suffix: string, options: HebcalOptions): string; | ||
} | ||
@@ -237,0 +282,0 @@ |
{ | ||
"name": "@hebcal/core", | ||
"version": "1.0.13", | ||
"version": "1.0.14", | ||
"author": "Michael J. Radwin (https://github.com/mjradwin)", | ||
@@ -5,0 +5,0 @@ "contributors": [ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
517228
7539