1
This commit is contained in:
22
20220330_Vote/Ewide.Web.Entry/wwwroot/lib/xe-utils/getWhatMonth.d.ts
vendored
Normal file
22
20220330_Vote/Ewide.Web.Entry/wwwroot/lib/xe-utils/getWhatMonth.d.ts
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
/**
|
||||
* 返回前几月或后几月的日期
|
||||
* @param date 字符串/日期/时间戳
|
||||
* @param offsetMonth 月偏移量(默认0)、前几个月、后几个月
|
||||
*/
|
||||
export declare function getWhatMonth(date: string | Date | number, offset: number): Date;
|
||||
|
||||
/**
|
||||
* 返回前几月或后几月的日期,可以指定月初(first)、月末(last)、天数,默认当前
|
||||
* @param date 字符串/日期/时间戳
|
||||
* @param offsetMonth 月偏移量(默认默认当前月)、前几个月、后几个月
|
||||
* @param offsetDay 获取哪天:月初(first)、月末(last)、指定天数(数值)
|
||||
*/
|
||||
export declare function getWhatMonth(date: string | Date | number, offset: number, day: number | 'first' | 'last'): Date;
|
||||
|
||||
declare module './ctor' {
|
||||
interface XEUtilsMethods {
|
||||
getWhatMonth: typeof getWhatMonth;
|
||||
}
|
||||
}
|
||||
|
||||
export default getWhatMonth
|
||||
Reference in New Issue
Block a user