[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: [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)
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]