zclllyybb commented on code in PR #3002:
URL: https://github.com/apache/doris-website/pull/3002#discussion_r2463001850
##########
i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-functions/scalar-functions/date-time-functions/maketime.md:
##########
@@ -0,0 +1,73 @@
+---
+{
+ "title": "MAKETIME",
+ "language": "zh-CN"
+}
+---
+
+## 描述
+
+返回根据`hour`, `minute`, `second`组合出的时间值
+
+该函数与 mysql 中的 [makedate
函数](https://dev.mysql.com/doc/refman/8.4/en/date-and-time-functions.html#function_maketime)
行为一致。
+
+## 语法
+
+```sql
+MAKETIME(`<hour>`, `<minute>`, `<second>`)
+```
+
+## 参数
+
+| 参数 | 说明 |
+| ---- | ---- |
+| `hour` | 时间的小时部分,支持整数类型(BIGINT)。取值范围被限制在 [-838, 838],
若输入值超过该范围,则自动修正为最接近的边界值。 |
+| `minute` | 时间的分钟部分,支持整数类型(BITINT)。允许的取值范围为 [0, 59]。 |
+| `second` | 时间的秒数部分,支持整数(BIGINT)和小数类型(DOUBLE)。允许的取值范围为 [0, 60),
支持小数点后六位精度,若超过六位,会自动进行四舍五入。 |
+
+## 返回值
+
+返回一个TIME 类型的值,格式为 `hour:minute:second`。当输入的`seconde`为整数类型,输出值精度为
0,当其为小数类型时,输出值精度为最大精度 6。
+
+- 若`minute` 或 `second` 超过允许范围,返回 NULL
+- 任一参数为 NULL,返回 NULL
+
+## 举例
+
+```sql
+SELECT `hour`, `minute`, `sec`, MAKETIME(`hour`, `minute`, `sec`) AS ans FROM
`test_maketime`;
Review Comment:
跟pr的评论一样,加一下minute sec为负数的不合法case
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]