You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Peter (JIRA)" <ji...@apache.org> on 2013/08/30 07:02:55 UTC

[jira] [Commented] (CB-4596) Documentation is not consistent for timestamp types

    [ https://issues.apache.org/jira/browse/CB-4596?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13754375#comment-13754375 ] 

Peter commented on CB-4596:
---------------------------

That Position.timestamp type (Date) may not be correct. See CB-4703
                
> Documentation is not consistent for timestamp types
> ---------------------------------------------------
>
>                 Key: CB-4596
>                 URL: https://issues.apache.org/jira/browse/CB-4596
>             Project: Apache Cordova
>          Issue Type: Improvement
>          Components: Docs
>    Affects Versions: 2.9.0
>            Reporter: Peter
>            Assignee: Michael Brooks
>            Priority: Minor
>
> 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.
> Ref http://dev.w3.org/2006/webapi/WebIDL/#common-DOMTimeStamp

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira