REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 696 B
Close
/home/byroehnu/.trash/node_modules11/date-fns/esm/getUnixTime/index.js
Text
Base64
import getTime from "../getTime/index.js"; import requiredArgs from "../_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 */ export default function getUnixTime(dirtyDate) { requiredArgs(1, arguments); return Math.floor(getTime(dirtyDate) / 1000); }
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
163 B
lrw-r--r--
2026-02-28 00:36:28
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
index.js
696 B
lrw-r--r--
2026-02-28 00:33:06
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:31:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
package.json
61 B
lrw-r--r--
2026-02-28 00:34: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).