@clr/angular
Version:
Angular components for Clarity
31 lines (30 loc) • 912 B
TypeScript
export declare class DayModel {
readonly year: number;
readonly month: number;
readonly date: number;
constructor(year: number, month: number, date: number);
/**
* Checks if the passed CalendarDate is equal to itself.
*/
isEqual(day: DayModel): boolean;
toDate(): Date;
/**
* Returns a new DayModel which is incremented based on the value passed.
*/
incrementBy(value: number): DayModel;
/**
* Clones the current day model.
*/
clone(): DayModel;
toComparisonString(): string;
toDateString(): string;
/**
* Compares the dates and returns boolean value based on the value passed
*/
isBefore(day: DayModel, dayInclusive?: boolean): boolean;
/**
* Compares the dates and returns boolean value based on the value passed
*/
isAfter(day: DayModel, dayInclusive?: boolean): boolean;
private pad;
}