[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: [OASIS Issue Tracker] Commented: (ODATA-71) Improve addition and subtraction Arithmetic Operators to handle time-related data types
[ http://tools.oasis-open.org/issues/browse/ODATA-71?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=31962#action_31962 ] Andrew Eisenberg commented on ODATA-71: --------------------------------------- We could also consider adding: Date - Date -> DayTimeDuration - DayTimeDuration -> DayTimeDuration abs(DayTimeDuration) -> DayTimeDuration (and add support for abs on numeric types) Use case: .../$filter=(now() sub hireDate) gt DayTimeDuration('P90D') > Improve addition and subtraction Arithmetic Operators to handle time-related data types > --------------------------------------------------------------------------------------- > > Key: ODATA-71 > URL: http://tools.oasis-open.org/issues/browse/ODATA-71 > Project: OASIS Open Data Protocol (OData) TC > Issue Type: Improvement > Components: OData URL Conventions v1.0 > Affects Versions: WD01 > Environment: [Proposed] > Reporter: Martin Zurmuehl > Priority: Minor > Fix For: WD01 > > > In section "5.1.1.2.1 Addition Operator" and "5.1.1.2.2 Subtraction Operator" the operators add and sub are defined on numeric operands only > For some use cases the addition or subraction of time-related datatypes would be very valuable. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://tools.oasis-open.org/issues/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]