@blueprintjs/datetime
Version:
Components for interacting with dates and times
16 lines (15 loc) • 526 B
TypeScript
export declare class MonthAndYear {
static fromDate(date: Date): MonthAndYear;
private date;
constructor(month?: number, year?: number);
clone(): MonthAndYear;
getFullDate(): Date;
getMonth(): number;
getYear(): number;
getPreviousMonth(): MonthAndYear;
getNextMonth(): MonthAndYear;
isBefore(monthAndYear: MonthAndYear): boolean;
isAfter(monthAndYear: MonthAndYear): boolean;
isSame(monthAndYear: MonthAndYear): boolean;
isSameMonth(monthAndYear: MonthAndYear): boolean;
}