We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d62e09c + 6ad227c commit 257f989Copy full SHA for 257f989
1 file changed
docs/temporal.md
@@ -6,7 +6,7 @@ Temporal 是一个表示时间日期的全新 API,对目前的 Date API 的诸
6
7
Temporal API 将时间分成四种。
8
9
-- 当前时间:表示此时此刻的时间,位于 Temporal.now 对象。
+- 当前时间:表示此时此刻的时间,位于 Temporal.Now 对象。
10
- 时点时间(instant),表示历史上某个唯一时间,其中 Temporal.Instant 对象表示时间戳,Temporal.ZonedDateTime 表示带有时区的日期时间。
11
- 本地时间(wall-clock times),包含以下几个对象,不涉及时区。
12
- Temporal.PlainDateTime:完整的日期和时间。
@@ -226,7 +226,8 @@ const time = Temporal.PlainTime.from({
226
millisecond: 68,
227
microsecond: 346,
228
nanosecond: 205
229
-}); // => 19:39:09.068346205time.second; // => 9
+}); // => 19:39:09.068346205
230
+time.second; // => 9
231
time.toString(); // => '19:39:09.068346205'
232
```
233
0 commit comments