Skip to content

Commit acb4f53

Browse files
ryzokukenMs2ger
authored andcommitted
docs: rename absolute to instant
Rename a misreference from Temporal.Absolute to Temporal.Instant.
1 parent 2c5d979 commit acb4f53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/plaindatetime.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ But there are cases where `Temporal.PlainDateTime` is the correct type to use:
2828
For example, the British Commonwealth observes a [two minute silence](https://en.wikipedia.org/wiki/Two-minute_silence) every November 11th at 11:00AM in local time.
2929
- When time zone is irrelevant, e.g. a sleep tracking device that only cares about the local time you went to sleep and woke up, regardless of where in the world you are.
3030
- Parsing local time from ISO 8601 strings like `2020-04-09T16:08-08:00` that have a numeric offset without an IANA time zone like `America/Los_Angeles`.
31-
These strings can also be parsed by `Temporal.Absolute`, but to parse the local date and time then `Temporal.PlainDateTime.from` is required.
31+
These strings can also be parsed by `Temporal.Instant`, but to parse the local date and time then `Temporal.PlainDateTime.from` is required.
3232
- Performing arithmetic that deliberately ignores DST.
3333
Example: in a day-planner UI, the visual height of a meeting may be the same even if DST skips or repeats an hour.
3434

0 commit comments

Comments
 (0)