REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 1.49 KB
Close
/home/byroehnu/easepay.easetack.com/node_modules/date-fns/startOfISOWeekYear/index.js
Text
Base64
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = startOfISOWeekYear; var _index = _interopRequireDefault(require("../getISOWeekYear/index.js")); var _index2 = _interopRequireDefault(require("../startOfISOWeek/index.js")); var _index3 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); /** * @name startOfISOWeekYear * @category ISO Week-Numbering Year Helpers * @summary Return the start of an ISO week-numbering year for the given date. * * @description * Return the start of an ISO week-numbering year, * which always starts 3 days before the year's first Thursday. * The result will be in the local timezone. * * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date * * @param {Date|Number} date - the original date * @returns {Date} the start of an ISO week-numbering year * @throws {TypeError} 1 argument required * * @example * // The start of an ISO week-numbering year for 2 July 2005: * const result = startOfISOWeekYear(new Date(2005, 6, 2)) * //=> Mon Jan 03 2005 00:00:00 */ function startOfISOWeekYear(dirtyDate) { (0, _index3.default)(1, arguments); var year = (0, _index.default)(dirtyDate); var fourthOfJanuary = new Date(0); fourthOfJanuary.setFullYear(year, 0, 4); fourthOfJanuary.setHours(0, 0, 0, 0); var date = (0, _index2.default)(fourthOfJanuary); return date; } module.exports = exports.default;
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 5
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
.htaccess
127 B
lr--r--r--
2026-03-14 01:49:15
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
index.d.ts
177 B
lrw-r--r--
2026-02-28 00:36:54
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
index.js
1.49 KB
lrw-r--r--
2026-02-28 00:34:46
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
index.js.flow
1.36 KB
lrw-r--r--
2026-02-28 00:32:38
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
package.json
108 B
lrw-r--r--
2026-02-28 00:36:12
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).