REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 988 B
Close
/home/byroehnu/easepay.easetack.com/node_modules/date-fns/getUnixTime/index.js
Text
Base64
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = getUnixTime; var _index = _interopRequireDefault(require("../getTime/index.js")); var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); /** * @name getUnixTime * @category Timestamp Helpers * @summary Get the seconds timestamp of the given date. * * @description * Get the seconds timestamp of the given date. * * @param {Date|Number} date - the given date * @returns {Number} the timestamp * @throws {TypeError} 1 argument required * * @example * // Get the timestamp of 29 February 2012 11:45:05 CET: * const result = getUnixTime(new Date(2012, 1, 29, 11, 45, 5)) * //=> 1330512305 */ function getUnixTime(dirtyDate) { (0, _index2.default)(1, arguments); return Math.floor((0, _index.default)(dirtyDate) / 1000); } 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
163 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
988 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:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
package.json
101 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).