26 lines
812 B
JavaScript
26 lines
812 B
JavaScript
|
"use strict";
|
||
|
|
||
|
Object.defineProperty(exports, "__esModule", {
|
||
|
value: true
|
||
|
});
|
||
|
exports.default = startOfUTCISOWeekYear;
|
||
|
|
||
|
var _index = _interopRequireDefault(require("../getUTCISOWeekYear/index.js"));
|
||
|
|
||
|
var _index2 = _interopRequireDefault(require("../startOfUTCISOWeek/index.js"));
|
||
|
|
||
|
var _index3 = _interopRequireDefault(require("../requiredArgs/index.js"));
|
||
|
|
||
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||
|
|
||
|
function startOfUTCISOWeekYear(dirtyDate) {
|
||
|
(0, _index3.default)(1, arguments);
|
||
|
var year = (0, _index.default)(dirtyDate);
|
||
|
var fourthOfJanuary = new Date(0);
|
||
|
fourthOfJanuary.setUTCFullYear(year, 0, 4);
|
||
|
fourthOfJanuary.setUTCHours(0, 0, 0, 0);
|
||
|
var date = (0, _index2.default)(fourthOfJanuary);
|
||
|
return date;
|
||
|
}
|
||
|
|
||
|
module.exports = exports.default;
|