You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@vxquery.apache.org by "Preston Carman (JIRA)" <ji...@apache.org> on 2012/07/01 22:23:01 UTC
[jira] [Commented] (VXQUERY-43) Date, DateTime, and Time Pointables
[ https://issues.apache.org/jira/browse/VXQUERY-43?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13404799#comment-13404799 ]
Preston Carman commented on VXQUERY-43:
---------------------------------------
The patch stores the date, time, and datetime values in their individual components. Each one has standard functions to access the values. Two additional functions are available for calculations: YearMonth and DayTime (similar to the duration values).
> Date, DateTime, and Time Pointables
> -----------------------------------
>
> Key: VXQUERY-43
> URL: https://issues.apache.org/jira/browse/VXQUERY-43
> Project: VXQuery
> Issue Type: Sub-task
> Reporter: Preston Carman
> Attachments: TimePointables2.patch
>
>
> Date types are need to build out all the XQuery functions and Operators. Three data types are needed with respect to time: Date, DateTime, and Time. Each one is basically a single number can be converted into an ISO8601 format.
> Date (number of days) int
> http://code.google.com/p/asterixdb/source/browse/branches/asterix_stabilization_temporal_fixes/asterix-om/src/main/java/edu/uci/ics/asterix/om/base/ADate.java?r=338
> DateTime (number of seconds since 1970) long
> http://code.google.com/p/asterixdb/source/browse/branches/asterix_stabilization_temporal_fixes/asterix-om/src/main/java/edu/uci/ics/asterix/om/base/ADateTime.java?r=338
> Time (number of milliseconds) int
> http://code.google.com/p/asterixdb/source/browse/branches/asterix_stabilization_temporal_fixes/asterix-om/src/main/java/edu/uci/ics/asterix/om/base/ATime.java?r=338
> The links are for a project that saves the information in a similar manner.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira