@@ -6,7 +6,7 @@ Author - andimarek
66
77Date - 2022-10-18
88
9- This is a String-based Scalar .
9+ This is a String-based scalar .
1010
1111** License and Copyright**
1212
@@ -15,11 +15,11 @@ Copyright © GraphQL contributors. This specification is licensed under
1515
1616# Overview
1717
18- This Scalar represents an exact point in time. This point in time is specified
18+ This scalar represents an exact point in time. This point in time is specified
1919by having an offset to UTC and does ** not** use a time zone.
2020
2121It is a slightly refined version of
22- [ RFC 3339] ( https://tools.ietf.org/html/rfc3339 ) including the
22+ [ RFC 3339] ( https://tools.ietf.org/html/rfc3339 ) , including the
2323[ errata] ( https://www.rfc-editor.org/errata/rfc3339 ) .
2424
2525All definitions of RFC 3339 are adopted and nothing is added or removed unless
@@ -32,7 +32,7 @@ The following refinements/clarifications apply:
3232This scalar represents a “date-time” as specified in section 5.6 of RFC 3339.
3333
3434The other productions in section 5.6 are only used to support "date-time" but
35- never stand alone for this Scalar .
35+ never stand alone for this scalar .
3636
3737** Non-optional exact milliseconds**
3838
@@ -42,14 +42,14 @@ RFC 3339 defines `time-secfrac` optional as:
4242time-secfrac = "." 1*DIGIT (Meaning 1 or more DIGIT)
4343```
4444
45- This allows for an unlimited numbers of digits. For this scalar the rule is not
46- optional anymore and refined as:
45+ This allows for an unlimited number of digits. For this scalar, the rule is no
46+ longer optional and is refined as:
4747
4848```
4949time-secfrac = "." DIGIT DIGIT DIGIT
5050```
5151
52- consisting always of exact three digits representing milliseconds.
52+ ... consisting always of exactly three digits representing milliseconds.
5353
5454** No 'Unknown Local Offset Convention'**
5555
@@ -60,7 +60,7 @@ If the time in UTC is known, but the offset to local time is unknown,
6060this can be represented with an offset of "-00:00".
6161```
6262
63- In order to simplify this Scalar this convention is dropped and an offset of
63+ In order to simplify this scalar this convention is dropped and an offset of
6464` -00:00 ` is not allowed.
6565
6666** Examples**
@@ -87,20 +87,20 @@ These are invalid examples:
8787| ---------------------------------- | ------------------------------------------------------------------ |
8888| ` 2011-08-30T13:22:53.108-03 ` | The minutes of the offset are missing. |
8989| ` 2011-08-30T13:22:53.108912Z ` | Too many digits for fractions of a second. Exactly three expected. |
90- | ` 2011-08-30T24 :22:53Z ` | Fractions of a second are missing. |
90+ | ` 2011-08-30T23 :22:53Z ` | Fractions of a second are missing. |
9191| ` 2011-08-30T13:22:53.108 ` | No offset provided. |
9292| ` 2011-08-30 ` | No time provided. |
9393| ` 2011-08-30T13:22:53.108-00:00 ` | Negative offset (` -00:00 ` ) is not allowed |
9494| ` 2011-08-30T13:22:53.108+03:30:15 ` | Seconds are not allowed for the offset |
9595| ` 2011-08-30T24:22:53.108Z ` | ` 24 ` is not allowed as hour of the time. |
9696| ` 2010-02-30T21:22:53.108Z ` | 30th of February is not a valid date |
97- | ` 2010-02-11T21:22:53.108Z +25:11 ` | 25 is not a valid hour for offset |
97+ | ` 2010-02-11T21:22:53.108 +25:11 ` | 25 is not a valid hour for offset |
9898
9999# Name
100100
101101The recommended name is ` DateTime ` . An alternative is ` OffsetDateTime ` .
102102
103- ` Date ` is potentially misleading as this Scalar also specifies a time, not only
103+ ` Date ` is potentially misleading as this scalar also specifies a time, not only
104104a date.
105105
106106# Result
@@ -111,4 +111,4 @@ two divider characters `T` and `Z` are always uppercase, never `t` or `z`.
111111
112112# Input
113113
114- As Input every valid String as described above must be accepted.
114+ As input, every valid String as described above must be accepted.
0 commit comments