UNPKG

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