سؤال

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?

هل كانت مفيدة؟

المحلول

If you have a "position" object that contain the gps coordinates, try with this one:

new Date(position.timestamp)
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top