UNPKG

445 BTypeScriptView Raw
1/**
2 * 返回某个月份的天数,可以指定前几个月或后几个月,默认当前
3 * @param date 字符串/日期/时间戳
4 * @param offset 月偏移量(默认0)、前几个月、后几个月
5 */
6export declare function getDayOfMonth(date: string | Date | number, offset: number): number;
7
8declare module './ctor' {
9 interface XEUtilsMethods {
10 getDayOfMonth: typeof getDayOfMonth;
11 }
12}
13
14export default getDayOfMonth