UNPKG

datebs

Version:

library to convert date from BS to AD and vice versa.

21 lines (20 loc) 675 B
export declare class DateBS { year: number; month: number; day: number; constructor(year: number, month: number, day: number); static fromString(datestring: string): DateBS; toString(): string; dayOfYear(): number; daysInYear(): number; static daysInYear(year: number): number; daysSince(date?: DateBS): number; add(day: number, month?: number, year?: number): DateBS; toAD(): Date; static fromAD(date?: Date): DateBS; static daysDiff(a: any, b: any): number; monthsInYear(): any; static monthsInYear(year: number): any; daysInMonth(): number; static daysInMonth(year: number, month: number): number; }