Skip to content

Commit bd1e5a6

Browse files
committed
README updates for latest RFC 9557 changes
1 parent 4736fd8 commit bd1e5a6

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
1-
# Eleventy ISO8601 Date Parser
1+
# `@11ty/parse-date-strings`
22

33
Features:
44

5-
- Zero dependency super minimal ISO8601 date parsing library. Alternatives were [too lax, inaccurate, huge on disk, or huge in bundle](https://fediverse.zachleat.com/@zachleat/114870836413532617).
6-
- All dates supported by this library are [RFC-9557](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainDateTime#rfc_9557_format) compatible (parseable by `Temporal.PlainDate.from`, `Temporal.Instant.from`, or `Temporal.PlainDateTime.from`) to prepare for wider [Temporal API](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal) support.
7-
- Note that this is not a full polyfill — not all RFC-9557 dates are supported here. Alternatives: [`temporal-polyfill`](https://github.com/fullcalendar/temporal-polyfill) or [`js-temporal/temporal-polyfill`](https://github.com/js-temporal/temporal-polyfill)
5+
- Zero dependency super minimal [RFC 9557](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainDateTime#rfc_9557_format)-compatible date parsing library. Date strings are also parseable by `Temporal.PlainDate.from`, `Temporal.Instant.from`, or `Temporal.PlainDateTime.from` to prepare for wider [Temporal API](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal) support.
6+
- Alternatives: [`temporal-polyfill`](https://github.com/fullcalendar/temporal-polyfill) or [`js-temporal/temporal-polyfill`](https://github.com/js-temporal/temporal-polyfill)
87
- Invalid strings throw errors.
98
- Time zone notes:
109
- Defaults to UTC when time zone is unknown (*not* local time). This matches previous behavior in Eleventy and this feature maintains consistency between build and deploy servers.
1110
- Supports `+00`, `+00:00`, `-00`, or `-00:00` style time zone offsets (`:` delimiter is optional)
1211
- Delimiter notes:
13-
- *Requires* the `T` delimiter with DateTime strings
12+
- *Requires* a `T` or `t` or ` ` (space) delimiter with DateTime strings
1413
- Delimiters in dates (`-`) and times (`:`) are optional
1514

1615
Not supported (for RFC 9557 compatibility):

0 commit comments

Comments
 (0)