最佳答案
通过将 long
值放入 Date()
构造函数,可以将 unix 时间戳转换为 Date()
对象。我可以把它当作 new Date(1318762128031)
。
但是在那之后,如何从 Date()
对象返回 unix 时间戳呢?