2
2
3
3
# YearMonth — GraphQL Custom Scalar
4
4
5
- " Author - ayushvora10"
5
+ Author - ayushvora10
6
6
7
- " Date - 2024-07-27"
7
+ Date - 2024-07-27
8
8
9
9
** License and Copyright**
10
10
@@ -21,10 +21,10 @@ This can be used for records that are monthly in nature. Eg. a monthly sales for
21
21
22
22
# Name
23
23
24
- ` YearMonth ` inspired by [ Java] ( https://docs.oracle.com/javase/8/docs/api/java/time/YearMonth.html )
24
+ ` YearMonth ` , inspired by [ Java] ( https://docs.oracle.com/javase/8/docs/api/java/time/YearMonth.html )
25
25
26
- Or ` ISO8601YearMonth `
27
- Or just ` Month ` ?
26
+ Or ` ISO8601YearMonth ` \
27
+ Or just ` Month ` ?\
28
28
` ISO8601Month ` ?
29
29
30
30
# Result spec
@@ -48,7 +48,7 @@ The result must be an ISO 8601 extended format string with just the year and mon
48
48
| ` 2024-07-01 ` | Full date is not expected, precision must only be up to month |
49
49
| ` 2024-07-01T00:00:00Z ` | Full date-time is not expected, precision must only be up to month |
50
50
| ` 07-2024 ` | Should be YYYY-MM, not the other way |
51
- | ` 2024-00 ` | Month must be 1-indexed, not 0-indexed: Jan = 01, Dec = 12 |
51
+ | ` 2024-00 ` | Month must be 1-indexed, not 0-indexed: Jan is 01, Dec is 12 |
52
52
| ` 202407 ` | Hyphen missing; ISO recommends the “basic format (one without hyphens) should be avoided in plain text” |
53
53
| ` 2024/07 ` | Slash instead of hyphen |
54
54
| ` 2024 ` | Incomplete - month missing |
@@ -77,4 +77,3 @@ For input, _any valid ISO 8601 string_ is allowed.
77
77
# References
78
78
79
79
- [ ISO 8601] ( https://en.wikipedia.org/wiki/ISO_8601 )
80
- List external references, other background information etc.
0 commit comments