MCPcopy Create free account
hub / github.com/ClydeTime/Surge / getTimestamp

Method getTimestamp

Script/Env.js:335–337  ·  view source on GitHub ↗

* * @param {Date} date * @returns {url} 从日期生成 UNIX 时间戳

(date = new Date())

Source from the content-addressed store, hash-verified

333 * @returns {url} 从日期生成 UNIX 时间戳
334 */
335 getTimestamp(date = new Date()) {
336 return Math.floor(date.getTime() / 1000)
337 }
338
339 /**
340 *

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected