PHP程序返回的时间戳是10位秒级别的时间戳,使用postman模拟post方法,其中时间参数是秒
网上查获取秒级别的方法是(new Date().getTime())/1000),这种会导致输出的时间包含小数点,求解准确的秒级别时间戳怎么写
已知:
//获取毫秒的时间戳方法
postman.setGlobalVariable(“timestamp”,Math.round(new Date().getTime()));
timestamp = postman.getGlobalVariable(‘timestamp’);
未知:
//获取秒的时间戳方法
?
postman-Pre-request-Script如何获取秒级别时间戳
最新推荐文章于 2024-06-13 15:27:52 发布