node unix time to format code example Example: nodejs current timestamp unix Math.floor(+new Date() / 1000)