1 | import { Time } from './datetime';
|
2 | declare type Datelike = Pick<Date, 'getTime'>;
|
3 | export declare const datetime: (y: number, m: number, d: number, h?: number, i?: number, s?: number) => Date;
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 | export declare const MONTH_DAYS: number[];
|
10 |
|
11 |
|
12 |
|
13 | export declare const ONE_DAY: number;
|
14 |
|
15 |
|
16 |
|
17 | export declare const MAXYEAR = 9999;
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 | export declare const ORDINAL_BASE: Date;
|
24 |
|
25 |
|
26 |
|
27 |
|
28 | export declare const PY_WEEKDAYS: number[];
|
29 |
|
30 |
|
31 |
|
32 | export declare const getYearDay: (date: Date) => number;
|
33 | export declare const isLeapYear: (year: number) => boolean;
|
34 | export declare const isDate: (value: unknown) => value is Date;
|
35 | export declare const isValidDate: (value: unknown) => value is Date;
|
36 |
|
37 |
|
38 |
|
39 | export declare const tzOffset: (date: Date) => number;
|
40 |
|
41 |
|
42 |
|
43 | export declare const daysBetween: (date1: Date, date2: Date) => number;
|
44 |
|
45 |
|
46 |
|
47 | export declare const toOrdinal: (date: Date) => number;
|
48 |
|
49 |
|
50 |
|
51 | export declare const fromOrdinal: (ordinal: number) => Date;
|
52 | export declare const getMonthDays: (date: Date) => number;
|
53 |
|
54 |
|
55 |
|
56 | export declare const getWeekday: (date: Date) => number;
|
57 |
|
58 |
|
59 |
|
60 | export declare const monthRange: (year: number, month: number) => number[];
|
61 |
|
62 |
|
63 |
|
64 | export declare const combine: (date: Date, time: Date | Time) => Date;
|
65 | export declare const clone: (date: Date | Time) => Date;
|
66 | export declare const cloneDates: (dates: Date[] | Time[]) => Date[];
|
67 |
|
68 |
|
69 |
|
70 | export declare const sort: <T extends Datelike>(dates: T[]) => void;
|
71 | export declare const timeToUntilString: (time: number, utc?: boolean) => string;
|
72 | export declare const untilStringToDate: (until: string) => Date;
|
73 | export declare const dateInTimeZone: (date: Date, timeZone: string) => Date;
|
74 | export {};
|
75 |
|
\ | No newline at end of file |