@hebcal/core
Version:
A perpetual Jewish Calendar API
63 lines (62 loc) • 1.55 kB
TypeScript
import { Event } from './event';
import { CalOptions } from './CalOptions';
import { HDate } from '@hebcal/hdate';
import './locale';
/**
* Represents a molad, the moment when the new moon is "born"
*/
export declare class Molad {
private readonly m;
/**
* Calculates the molad for a Hebrew month
* @param year
* @param month
*/
constructor(year: number, month: number);
/**
*/
getYear(): number;
/**
*/
getMonth(): number;
/**
*/
getMonthName(): string;
/**
* @returns Day of Week (0=Sunday, 6=Saturday)
*/
getDow(): number;
/**
* @returns hour of day (0-23)
*/
getHour(): number;
/**
* @returns minutes past hour (0-59)
*/
getMinutes(): number;
/**
* @returns parts of a minute (0-17)
*/
getChalakim(): number;
/**
* @param [locale] Optional locale name (defaults to active locale)
* @param options
*/
render(locale?: string, options?: CalOptions): string;
}
/** Represents a Molad announcement on Shabbat Mevarchim */
export declare class MoladEvent extends Event {
readonly molad: Molad;
private readonly options;
/**
* @param date Hebrew date event occurs
* @param hyear molad year
* @param hmonth molad month
* @param options
*/
constructor(date: HDate, hyear: number, hmonth: number, options: CalOptions);
/**
* @param [locale] Optional locale name (defaults to active locale).
*/
render(locale?: string): string;
}