graphql-scalars icon indicating copy to clipboard operation
graphql-scalars copied to clipboard

Add AccurateDuration and NominalDuration

Open AlexandreCarlton opened this issue 1 year ago • 1 comments
trafficstars

This pull request attempts to document two different types of Durations per the ISO 8601 standard:

  • AccurateDuration, relating to the portion of a Duration that is context-free (that is, it only contains seconds, minutes, hours, and 24-hour days).

  • NominalDuration, relating ot the portion that is dependent on the position in the calendar with respect to which the duration is being evaluated. It contains calendar years, months, weeks and days.

Please see https://github.com/graphql-java/graphql-java-extended-scalars/pull/132 for the proposed implementation in graphql-java.

AlexandreCarlton avatar Mar 16 '24 14:03 AlexandreCarlton