Merge pull request #48284 from windsonsea/duraty

[zh] Add glossary/duration.md
pull/48229/head
Kubernetes Prow Robot 2024-10-12 12:32:20 +01:00 committed by GitHub
commit 590a93a2b0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,31 @@
---
title: Duration
id: duration
date: 2024-10-05
full_link:
short_description: >
以字符串形式指定的时间间隔,格式符合 Go 语言的
[time.Duration](https://pkg.go.dev/time)
允许使用秒、分钟和小时等不同单位灵活地指定时间。
aka:
tags:
- fundamental
---
<!--
title: Duration
id: duration
date: 2024-10-05
full_link:
short_description: >
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.
aka:
tags:
- fundamental
-->
<!--
In Kubernetes APIs, a duration must be non-negative and is typically expressed with a suffix.
For example, `5s` for five seconds or `1m30s` for one minute and thirty seconds.
-->
在 Kubernetes API 中duration 必须是非负的,通常带有后缀单位。
例如,`5s` 表示五秒,`1m30s` 表示一分三十秒。