UNPKG

454 BTypeScriptView Raw
1import { NgbDate } from '../ngb-date';
2/**
3 * Returns the equivalent JS date value for a give input Buddhist date.
4 * `date` is an Buddhist date to be converted to Gregorian.
5 */
6export declare function toGregorian(date: NgbDate): Date;
7/**
8 * Returns the equivalent Buddhist date value for a give input Gregorian date.
9 * `gdate` is a JS Date to be converted to Buddhist.
10 * utc to local
11 */
12export declare function fromGregorian(gdate: Date): NgbDate;