OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

odata message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: [OASIS Issue Tracker] Updated: (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:all-tabpanel ]

Ralf Handl updated ODATA-71:
----------------------------

    Proposal: 
We proposed to define the following valid operations:
    DateTimeOffset + DayTimeDuration -> DateTimeOffset   
    DateTimeOffset - DayTimeDuration -> DateTimeOffset   
    DayTimeDuration + DayTimeDuration -> DayTimeDuration
    DayTimeDuration - DayTimeDuration -> DayTimeDuration
    DateTimeOffset - DateTimeOffset -> DayTimeDuration
    Date + DayTimeDuration -> DateTimeOffset (or Date and throw away smaller components)
    Date - DayTimeDuration -> DateTimeOffset (or Date and throw away smaller components)

We observed that the following operations were valid, but did not propose adding them at this time:
	duration / int
	duration * int
	adjust (to change the timezone)


  was:
We proposed to define the following valid operations:
    DateTimeOffset + DayTimeDuration->DateTimeOffset   
    DateTimeOffset - DayTimeDuration-> DayTimeDuration
    DayTimeDuration+ DayTimeDuration-> DayTimeDuration
    DayTimeDuration- DayTimeDuration-> DayTimeDuration
    DateTimeOffset + DateTimeOffset -> DayTimeDuration
    Date + DayTimeDuration->DateTimeOffset (or Date and throw away smaller components)
    Date - DayTimeDuration->DateTimeOffset (or Date and throw away smaller components)

We observed that the following operations were valid, but did not propose adding them at this time:
	-duration / int
	-duration * int
	-adjust (to change the timezone)



> 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]