node-red unix timestamp javascript code example
Example 1: nodejs current timestamp unix
Math.floor(+new Date() / 1000)
Example 2: node js unix timestamp
function getUnixTime() {
return (Date.now() / 1000) | 0;
}
Math.floor(+new Date() / 1000)
function getUnixTime() {
return (Date.now() / 1000) | 0;
}