1474148715
根据epochconverter它是:GMT:2016 年 9 月 17 日星期六 21:45:15 GMT
尝试momentJS ,但运气不佳:
const startMomentized = moment(Date($state.params.start_epoch)).add(1, '毫秒').unix();
^ 这给了我日期:GMT: Thu, 09 Feb 2017 19:39:43 GMT
,而不是我想要的 2016 年 9 月的日期。
希望得到类似以下内容:
var start = params.start_epoch;
var startUpdated = start+millisec;
最佳答案
该值表示自 1970 年以来的时间(以毫秒为单位)。您可以直接在该数字上添加毫秒,例如:1474148715 + 1
关于javascript - 如何给这个纪元添加一毫秒的时间?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42145433/