UNPKG

798 BTypeScriptView Raw
1import { NgbCalendarHijri } from './ngb-calendar-hijri';
2import { NgbDate } from '../ngb-date';
3export declare class NgbCalendarIslamicCivil extends NgbCalendarHijri {
4 /**
5 * Returns the equivalent islamic(civil) date value for a give input Gregorian date.
6 * `gDate` is a JS Date to be converted to Hijri.
7 */
8 fromGregorian(gDate: Date): NgbDate;
9 /**
10 * Returns the equivalent JS date value for a give input islamic(civil) date.
11 * `hDate` is an islamic(civil) date to be converted to Gregorian.
12 */
13 toGregorian(hDate: NgbDate): Date;
14 /**
15 * Returns the number of days in a specific Hijri month.
16 * `month` is 1 for Muharram, 2 for Safar, etc.
17 * `year` is any Hijri year.
18 */
19 getDaysPerMonth(month: number, year: number): number;
20}