decord/source/3645_getDaysInMonth.js

39 lines
872 B
JavaScript
Raw Normal View History

2026-08-07 06:50:47 +00:00
// Module ID: 3645
// Function ID: 3646
2026-07-29 08:29:29 +00:00
// Name: getDaysInMonth
2026-08-07 06:50:47 +00:00
// Dependencies: [3380, 3381]
2026-07-29 08:29:29 +00:00
// Exports: default
2026-08-07 06:50:47 +00:00
// Module 3645 (getDaysInMonth)
2026-07-29 08:29:29 +00:00
import _typeof from "_typeof";
import requiredArgs from "requiredArgs";
if (!_typeof) {
let obj = { default: null };
obj[0] = _typeof;
let tmp3 = obj;
} else {
tmp3 = _typeof;
}
let c0 = tmp3;
if (!requiredArgs) {
obj = { default: null };
obj[0] = requiredArgs;
let tmp5 = obj;
} else {
tmp5 = requiredArgs;
}
let closure_1 = tmp5;
export default function getDaysInMonth(arg0) {
tmp5.default(1, arguments);
const defaultResult1 = tmp3.default(arg0);
const fullYear = defaultResult1.getFullYear();
const month = defaultResult1.getMonth();
const date = new Date(0);
date.setFullYear(fullYear, month + 1, 0);
date.setHours(0, 0, 0, 0);
return date.getDate();
};
export default exports.default;