← Prev in month ← Prev in thread
Next in thread → Next in month →

[OASIS Issue Tracker] (ODATA-1208) Specify the finest possible granularity for Duration

From
OASIS Issues Tracker <>
Date
2018-08-02T07:54:02+00:00
ID
Thread
[OASIS Issue Tracker] (ODATA-1208) Specify the finest possible granularity for Duration
Ralf Handl created ODATA-1208:
---------------------------------

             Summary: Specify the finest possible granularity for Duration
                 Key: ODATA-1208
                 URL: https://issues.oasis-open.org/browse/ODATA-1208
             Project: OASIS Open Data Protocol (OData) TC
          Issue Type: Bug
          Components: CSDL JSON , CSDL XML, Vocabularies
            Reporter: Ralf Handl


Edm.Duration allows to expressing via the Precision facet which number of decimal places can be stored/sent.

We have applications which don't even support second granularity for durations and only can store durations in days, hours, or minutes (all three variants exist).

We could extend Precision for Edm.Duration to use negative values, e.g. -1 meaning minute granularity, -2 hour granularity, and -3 day granularity. 

Or we could add a (Measures?) annotation DurationGranularity with allowed values "days", "hours", and "minutes". Absence of the annotation means "seconds with sub-seconds according to Precision". 





--
This message was sent by Atlassian JIRA
(v7.7.2#77003)
← Prev in month ← Prev in thread
Next in thread → Next in month →