Skip to content

Commit 07c7aee

Browse files
committed
[zh] Add glossary/duration.md
1 parent 6ffe634 commit 07c7aee

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
title: Duration
3+
id: duration
4+
date: 2024-10-05
5+
full_link:
6+
short_description: >
7+
以字符串形式指定的时间间隔,格式符合 Go 语言的
8+
[time.Duration](https://pkg.go.dev/time),
9+
允许使用秒、分钟和小时等不同单位灵活地指定时间。
10+
aka:
11+
tags:
12+
- fundamental
13+
---
14+
<!--
15+
title: Duration
16+
id: duration
17+
date: 2024-10-05
18+
full_link:
19+
short_description: >
20+
A time interval specified as a string in the format accepted by Go's [time.Duration](https://pkg.go.dev/time), allowing for flexible time specifications using various units like seconds, minutes, and hours.
21+
aka:
22+
tags:
23+
- fundamental
24+
-->
25+
26+
<!--
27+
In Kubernetes APIs, a duration must be non-negative and is typically expressed with a suffix.
28+
For example, `5s` for five seconds or `1m30s` for one minute and thirty seconds.
29+
-->
30+
在 Kubernetes API 中,duration 必须是非负的,通常带有后缀单位。
31+
例如,`5s` 表示五秒,`1m30s` 表示一分三十秒。

0 commit comments

Comments
 (0)