秒數 → 人類可讀(中文/英文)。例: 7325 → "2 小時 2 分鐘 5 秒" / "2h 2m 5s"。
파라미터
| 이름 | 타입 | 설명 |
|---|---|---|
| seconds * | number | — |
| language | "zh-tw" | "en" | — |
원본 JSON schema
{
"properties": {
"seconds": {
"title": "Seconds",
"type": "number"
},
"language": {
"default": "zh-tw",
"enum": [
"zh-tw",
"en"
],
"title": "Language",
"type": "string"
}
},
"required": [
"seconds"
],
"title": "duration_humanizeArguments",
"type": "object"
}호출 방법
스타터 — 파라미터는 위 표 참조
tw_duration_humanize({ seconds: 10 })