Skip to content

Commit 257f989

Browse files
authored
Merge pull request #1191 from dogledogle/patch-1
fix: correct Temporal.Now casing and split PlainTime example line
2 parents d62e09c + 6ad227c commit 257f989

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

docs/temporal.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Temporal 是一个表示时间日期的全新 API,对目前的 Date API 的诸
66

77
Temporal API 将时间分成四种。
88

9-
- 当前时间:表示此时此刻的时间,位于 Temporal.now 对象。
9+
- 当前时间:表示此时此刻的时间,位于 Temporal.Now 对象。
1010
- 时点时间(instant),表示历史上某个唯一时间,其中 Temporal.Instant 对象表示时间戳,Temporal.ZonedDateTime 表示带有时区的日期时间。
1111
- 本地时间(wall-clock times),包含以下几个对象,不涉及时区。
1212
- Temporal.PlainDateTime:完整的日期和时间。
@@ -226,7 +226,8 @@ const time = Temporal.PlainTime.from({
226226
millisecond: 68,
227227
microsecond: 346,
228228
nanosecond: 205
229-
}); // => 19:39:09.068346205time.second; // => 9
229+
}); // => 19:39:09.068346205
230+
time.second; // => 9
230231
time.toString(); // => '19:39:09.068346205'
231232
```
232233

0 commit comments

Comments
 (0)