1 | import { isSameDay } from "date-fns";
|
2 | import { type DateRange } from "./dateRange";
|
3 | export { isSameDay };
|
4 | export declare function clone(d: Date): Date;
|
5 | export declare function isDateValid(date: Date | false | null): date is Date;
|
6 | export declare function isEqual(date1: Date, date2: Date): boolean;
|
7 | export declare function areRangesEqual(dateRange1: DateRange, dateRange2: DateRange): boolean;
|
8 | export declare function isSameMonth(date1: Date, date2: Date): boolean;
|
9 | export declare function isSameTime(d1: Date | null, d2: Date | null): boolean;
|
10 | export declare function isDayInRange(date: Date | null, dateRange: DateRange, exclusive?: boolean): boolean;
|
11 | export declare function isDayRangeInRange(innerRange: DateRange, outerRange: DateRange): boolean;
|
12 | export declare function isMonthInRange(date: Date, dateRange: DateRange): boolean;
|
13 | export declare const isTimeEqualOrGreaterThan: (time: Date, timeToCompare: Date) => boolean;
|
14 | export declare const isTimeEqualOrSmallerThan: (time: Date, timeToCompare: Date) => boolean;
|
15 | export declare function isTimeInRange(date: Date, minDate: Date, maxDate: Date): boolean;
|
16 | export declare function getTimeInRange(time: Date, minTime: Date, maxTime: Date): Date;
|
17 |
|
18 |
|
19 |
|
20 |
|
21 | export declare function isTimeSameOrAfter(date: Date, dateToCompare: Date): boolean;
|
22 |
|
23 |
|
24 |
|
25 | export declare function getDateBetween(dateRange: DateRange): Date;
|
26 | export declare function getDateTime(date: Date | null, time?: Date | null): Date;
|
27 | export declare function getDateOnlyWithTime(date: Date): Date;
|
28 | export declare function getDatePreviousMonth(date: Date): Date;
|
29 | export declare function getDateNextMonth(date: Date): Date;
|
30 | export declare function convert24HourMeridiem(hour: number, toPm: boolean): number;
|
31 | export declare function getIsPmFrom24Hour(hour: number): boolean;
|
32 | export declare function get12HourFrom24Hour(hour: number): number;
|
33 | export declare function get24HourFrom12Hour(hour: number, isPm: boolean): number;
|
34 | export declare function isToday(date: Date): boolean;
|
35 | export declare function hasMonthChanged(prevDate: Date | null, nextDate: Date | null): boolean;
|
36 | export declare function hasTimeChanged(prevDate: Date | null, nextDate: Date | null): boolean;
|