如何用 Math.round(new Date().getTime?

postman怎么获取当前时间的Unix时间戳?
用 Math.round(new Date().getTime()); 得到的时间戳不是当前时间的Unix时间戳,一直报错,只有去网上工具转出的Unix时间戳才能成功。

试试这个呢,可能是没有转换成秒


Math.floor(Date.now() /1000);