nodejs epocd time code example Example: node get unix timestamp Math.floor(new Date() / 1000) // in seconds