@clr/angular
Version:
Angular components for Clarity
23 lines (22 loc) • 601 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;
private pad;
}