Uploaded image for project: 'OASIS Open Data Protocol (OData) TC'
  1. OASIS Open Data Protocol (OData) TC
  2. ODATA-215

Remove hour(), minute() and second() query functions and add corresponding overloads to the hours(), minutes(), and seconds() functions

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: V4.0_WD01
    • Fix Version/s: V4.0_WD01
    • Component/s: ABNF, URL Conventions
    • Labels:
      None
    • Environment:

      [Proposed]

      Description

      Both the hour() and hours() function returns an integer, and as the values returned are in the range of 0..23, the plural form of the name is more appropriate.
      Same reasoning for minute() and minutes(), second() and seconds().

      Btw., why do second() and seconds() return integers? We allow fractional seconds for DateTimeOffset, Duration, and TimeOfDay.

        Attachments

          Activity

            People

            • Assignee:
              handl Ralf Handl
              Reporter:
              handl Ralf Handl
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: