graphql-scalars
graphql-scalars copied to clipboard
Add AccurateDuration and NominalDuration
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.