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