[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: [OASIS Issue Tracker] (ODATA-917) 5.1.1.2.1 Addition and 5.1.1.2.2 Subtraction: Date add/sub Duration is DateTimeOffset - but in which time zone?
[ https://issues.oasis-open.org/browse/ODATA-917?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Pizzo updated ODATA-917:
--------------------------------
Proposal:
Rules are actually present in XML Schema 1.1 Part 2: E.3.3 Adding Durations to DateTime.
Rules:
1) Convert date to datetime (in any timezone) with zero hh:mm:ss
2) Add/subtract duration
3) Convert to date by dropping fractional days and timezone
was:
Date add duration is date, and lose fractional days.
> 5.1.1.2.1 Addition and 5.1.1.2.2 Subtraction: Date add/sub Duration is DateTimeOffset - but in which time zone?
> ---------------------------------------------------------------------------------------------------------------
>
> Key: ODATA-917
> URL: https://issues.oasis-open.org/browse/ODATA-917
> Project: OASIS Open Data Protocol (OData) TC
> Issue Type: Bug
> Components: OData URL Conventions
> Affects Versions: V4.0_ERRATA02
> Environment: [Proposed]
> Reporter: Ralf Handl
> Fix For: V4.0_ERRATA03
>
>
> The cited sections allow these operations but fail to provide guidance on how to implement them.
> DateTimeOffset must have a time zone, date cannot have a time zone.
> It would be better to
> - disallow these operations altogether
> - define the result type as Date and specify how to round or ignore sub-day duration portions
--
This message was sent by Atlassian JIRA
(v6.2.2#6258)
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]