Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add AccurateDuration and NominalDuration #24

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

AlexandreCarlton
Copy link

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 graphql-java/graphql-java-extended-scalars#132 for the proposed implementation in graphql-java.

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 graphql-java/graphql-java-extended-scalars#132
for the implementation in `graphql-java`.
Copy link

linux-foundation-easycla bot commented Mar 16, 2024

CLA Signed


The committers listed above are authorized under a signed CLA.

Co-authored-by: Ivan Maximov <sungam3r@yandex.ru>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants