zclllyybb commented on code in PR #2816:
URL: https://github.com/apache/doris-website/pull/2816#discussion_r2374752463


##########
i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-functions/scalar-functions/date-time-functions/convert-tz.md:
##########
@@ -20,38 +21,97 @@ CONVERT_TZ(<dt>, <from_tz>, <to_tz>)
 
 | 参数 | 说明 |
 | -- | -- | 
-| `<dt>` | 需要被转换的 datetime 值 |
-| `<from_tz>` | dt 的原始时区 |
-| `<to_tz>` | 需要转换的时区 |
+| `<date_or_time_expr>` | 需要被转换的值,为 datetime 或者 date 类型,具体 datetime 和 date 
格式请查看 [datetime 
的转换](../../../../../current/sql-manual/basic-element/sql-data-types/conversion/datetime-conversion)
 和 [date 
的转换](../../../../../current/sql-manual/basic-element/sql-data-types/conversion/date-conversion))
 |
+| `<from_tz>` | dt 的原始时区,该参数为 `varchar` 类型 |
+| `<to_tz>` | 需要转换的时区 ,该参数为 `varchar` 类型|
 
 ## 返回值
 
-转换后的 datetime 值
+- 转换后的值,类型为 datetime
+- 返回的scale 跟输入的scale 相同
+  - 不带有 scale 的 datetime 输入, 返回结果也不带有 scale
+  - 带有 scale 的输入,返回的结果带有相同的 scale
+
+特殊情况:
+- 如果任何参数为 NULL,返回 NULL。
+- 当输入的时区不合法的时候,返回NULL。 时区的设置参考 
[时区管理](../../../../admin-manual/cluster-management/time-zone)。

Review Comment:
   不合法的时候已经是报错了



-- 
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]

Reply via email to