Skip to content

Commit

Permalink
Tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushvora10 committed Jul 26, 2024
1 parent 3725bb4 commit c47965f
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions scalars/contributed/ayushvora10/year-month.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

# YearMonth — GraphQL Custom Scalar

"Author - ayushvora10"
Author - ayushvora10

"Date - 2024-07-27"
Date - 2024-07-27

**License and Copyright**

Expand All @@ -21,10 +21,10 @@ This can be used for records that are monthly in nature. Eg. a monthly sales for

# Name

`YearMonth` inspired by [Java](https://docs.oracle.com/javase/8/docs/api/java/time/YearMonth.html)
`YearMonth`, inspired by [Java](https://docs.oracle.com/javase/8/docs/api/java/time/YearMonth.html)

Or `ISO8601YearMonth`
Or just `Month`?
Or `ISO8601YearMonth`\
Or just `Month`?\
`ISO8601Month`?

# Result spec
Expand All @@ -48,7 +48,7 @@ The result must be an ISO 8601 extended format string with just the year and mon
| `2024-07-01` | Full date is not expected, precision must only be up to month |
| `2024-07-01T00:00:00Z` | Full date-time is not expected, precision must only be up to month |
| `07-2024` | Should be YYYY-MM, not the other way |
| `2024-00` | Month must be 1-indexed, not 0-indexed: Jan = 01, Dec = 12 |
| `2024-00` | Month must be 1-indexed, not 0-indexed: Jan is 01, Dec is 12 |
| `202407` | Hyphen missing; ISO recommends the “basic format (one without hyphens) should be avoided in plain text” |
| `2024/07` | Slash instead of hyphen |
| `2024` | Incomplete - month missing |
Expand Down Expand Up @@ -77,4 +77,3 @@ For input, _any valid ISO 8601 string_ is allowed.
# References

- [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
List external references, other background information etc.

0 comments on commit c47965f

Please sign in to comment.