Note that getTime() returns milliseconds, not plain seconds. For a UTC/Unix timestamp, the following should suffice: Math.floor((new Date ...
確定! 回上一頁