Date.minutes
Date.minutes
功能
读取分钟。
语法
date_value.minutes()
参数
无参数。
返回值
| 类型 | 说明 |
|---|---|
| Int | 返回 0 到 59 的分钟。 |
示例
result = date('2026-06-09 10:11:12').minutes() // 输出:11 echo(result)
注意事项
- minutes 是 minute 的别名。
读取分钟。
date_value.minutes()
无参数。
| 类型 | 说明 |
|---|---|
| Int | 返回 0 到 59 的分钟。 |
result = date('2026-06-09 10:11:12').minutes() // 输出:11 echo(result)