1 | /**
|
2 | * 返回前几天或后几天的日期
|
3 | * @param date 字符串/日期/时间戳
|
4 | * @param offset 天偏移量(默认0)、前几天、后几天
|
5 | */
|
6 | export declare function getWhatDay(date: string | Date | number, offset: number): Date;
|
7 |
|
8 | /**
|
9 | * 返回前几天或后几天的日期
|
10 | * @param date 字符串/日期/时间戳
|
11 | * @param offset 天偏移量(默认0)、前几天、后几天
|
12 | * @param mode 获取时间:日初(first)、日末(last)
|
13 | */
|
14 | export declare function getWhatDay(date: string | Date | number, offset: number, mode: 'first' | 'last'): Date;
|
15 |
|
16 | declare module './ctor' {
|
17 | interface XEUtilsMethods {
|
18 | getWhatDay: typeof getWhatDay;
|
19 | }
|
20 | }
|
21 |
|
22 | export default getWhatDay
|