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