0

When using the time stamp returned by phonegaps gps function it looks like this: 1369395556895.94.

How do I convert that to a real time?

4

1 回答 1

2

如果您有一个包含 gps 坐标的“位置”对象,请尝试使用这个:

new Date(position.timestamp)
于 2013-05-24T12:08:51.143 回答