decord/source/3702_endOfQuarter.js

37 lines
846 B
JavaScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 3702
// Function ID: 3703
2026-07-29 08:29:29 +00:00
// Name: endOfQuarter
2026-08-24 06:08:38 +00:00
// Dependencies: [3475, 3476]
2026-07-29 08:29:29 +00:00
// Exports: default
2026-08-24 06:08:38 +00:00
// Module 3702 (endOfQuarter)
import _typeof from "_typeof" /* 3475 */;
import requiredArgs from "requiredArgs" /* 3476 */;
2026-07-29 08:29:29 +00:00
if (!_typeof) {
let obj = { default: null };
obj[0] = _typeof;
let tmp3 = obj;
} else {
tmp3 = _typeof;
}
2026-08-24 06:08:38 +00:00
_typeof = tmp3;
2026-07-29 08:29:29 +00:00
if (!requiredArgs) {
obj = { default: null };
obj[0] = requiredArgs;
let tmp5 = obj;
} else {
tmp5 = requiredArgs;
}
2026-08-24 06:08:38 +00:00
requiredArgs = tmp5;
2026-07-29 08:29:29 +00:00
export default function endOfQuarter(arg0) {
2026-08-24 06:08:38 +00:00
requiredArgs.default(1, arguments);
const defaultResult1 = _typeof.default(arg0);
2026-07-29 08:29:29 +00:00
const month = defaultResult1.getMonth();
defaultResult1.setMonth(month - month % 3 + 3, 0);
defaultResult1.setHours(23, 59, 59, 999);
return defaultResult1;
};
export default exports.default;