ngb-calendar-islamic-civil.d.ts 798 B

1234567891011121314151617181920
  1. import { NgbCalendarHijri } from './ngb-calendar-hijri';
  2. import { NgbDate } from '../ngb-date';
  3. export 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. }