I can convert a unix timestamp to a Date()
object by putting the long
value into the Date()
constructor. For eg: I could have it as new Date(1318762128031)
.
But after that, how can I get back the unix timestamp from the Date()
object?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…