UNPKG

@minionorg/share

Version:
11 lines (10 loc) 250 B
/** * 获取当前月份的天数 * * @param {Date} date 日期 * @return {number} 天数 * @example * getDaysInMonth(new Date(2022, 8, 25)) = 30 */ declare function getDaysInMonth(date: Date): number; export default getDaysInMonth;