REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 955 B
Close
//proc/thread-self/root/home/byroehnu/.trash/node_modules11/date-fns/getHours/index.js
Text
Base64
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = getHours; var _index = _interopRequireDefault(require("../toDate/index.js")); var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); /** * @name getHours * @category Hour Helpers * @summary Get the hours of the given date. * * @description * Get the hours of the given date. * * @param {Date|Number} date - the given date * @returns {Number} the hours * @throws {TypeError} 1 argument required * * @example * // Get the hours of 29 February 2012 11:45:00: * const result = getHours(new Date(2012, 1, 29, 11, 45)) * //=> 11 */ function getHours(dirtyDate) { (0, _index2.default)(1, arguments); var date = (0, _index.default)(dirtyDate); var hours = date.getHours(); return hours; } module.exports = exports.default;
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 4
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
index.d.ts
157 B
lrw-r--r--
2026-02-28 00:36:48
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
index.js
955 B
lrw-r--r--
2026-02-28 00:33:48
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:14
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
package.json
98 B
lrw-r--r--
2026-02-28 00:35:58
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).