@ng-bootstrap/ng-bootstrap
Version:
Angular powered Bootstrap
24 lines (23 loc) • 986 B
TypeScript
import { NgbCalendarHijri } from './ngb-calendar-hijri';
import { NgbDate } from '../ngb-date';
import * as i0 from "@angular/core";
export declare class NgbCalendarIslamicCivil extends NgbCalendarHijri {
/**
* Returns the equivalent islamic(civil) date value for a give input Gregorian date.
* `gDate` is a JS Date to be converted to Hijri.
*/
fromGregorian(gDate: Date): NgbDate;
/**
* Returns the equivalent JS date value for a give input islamic(civil) date.
* `hDate` is an islamic(civil) date to be converted to Gregorian.
*/
toGregorian(hDate: NgbDate): Date;
/**
* Returns the number of days in a specific Hijri month.
* `month` is 1 for Muharram, 2 for Safar, etc.
* `year` is any Hijri year.
*/
getDaysPerMonth(month: number, year: number): number;
static ɵfac: i0.ɵɵFactoryDeclaration<NgbCalendarIslamicCivil, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<NgbCalendarIslamicCivil>;
}