Compare Codova documentation for these timestamps:
- Accelerometer > Acceleration.timestamp - timestamp: Creation timestamp in milliseconds. (DOMTimeStamp)
- Compass > CompassHeading.timestamp - timestamp: The time at which this heading was determined. (milliseconds)
- Geolocation > Position.timestamp - timestamp: Creation timestamp for coords. (Date)
It is confusing that documentation describes all these "timestamps" to have different types.
On closer inspection, for some reason the Position.timestamp really is (inconsistent with the others) returned as a Date object.
But at least Acceleration/Compass ones seem to have same units so perhaps the documentation for those ones ought to consistently say they are DOMTimeStamp.