decord/source/3687_startOfQuarter.js
2026-08-24 06:08:38 +00:00

36 lines
843 B
JavaScript

// Module ID: 3687
// Function ID: 3688
// Name: startOfQuarter
// Dependencies: [3475, 3476]
// Exports: default
// Module 3687 (startOfQuarter)
import _typeof from "_typeof" /* 3475 */;
import requiredArgs from "requiredArgs" /* 3476 */;
if (!_typeof) {
let obj = { default: null };
obj[0] = _typeof;
let tmp3 = obj;
} else {
tmp3 = _typeof;
}
_typeof = tmp3;
if (!requiredArgs) {
obj = { default: null };
obj[0] = requiredArgs;
let tmp5 = obj;
} else {
tmp5 = requiredArgs;
}
requiredArgs = tmp5;
export default function startOfQuarter(arg0) {
requiredArgs.default(1, arguments);
const defaultResult1 = _typeof.default(arg0);
const month = defaultResult1.getMonth();
defaultResult1.setMonth(month - month % 3, 1);
defaultResult1.setHours(0, 0, 0, 0);
return defaultResult1;
};
export default exports.default;