zclllyybb commented on code in PR #2681: URL: https://github.com/apache/doris-website/pull/2681#discussion_r2244706370
########## i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-functions/scalar-functions/date-time-functions/unix-timestamp.md: ########## @@ -5,82 +5,136 @@ } --- -## unix_timestamp ## 描述 -## 语法 - -`DECIMAL UNIX_TIMESTAMP([DATETIME date[, STRING fmt]])` - -`INT UNIX_TIMESTAMP([DATETIME date[, STRING fmt]])` 将 Date 或者 Datetime 类型转化为 unix 时间戳。 如果没有参数,则是将当前的时间转化为时间戳。 参数需要是 Date 或者 Datetime 类型。 -对于在 1970-01-01 00:00:00 之前或 2038-01-19 03:14:07 之后的时间,该函数将返回 0。 - Format 的格式请参阅 `date_format` 函数的格式说明。 该函数受时区影响。 +## 语法 + +```sql +UNIX_TIMESTAMP([DATETIME date[, STRING fmt]]) + +``` + +## 参数 + +| 参数 | 描述 | +| -- | -- | +| `<date>` | 待转换的日期时间值,类型为 `datetime`,可转换范围为 '1970-01-01 00:00:01.000000 UTC' 至 '3001-01-19 03:14:07.999999 UTC'。| Review Comment: 1. 注意罗列环境的格式 2. 数字、英文和中文之间空格 3. 还支持date类型 -- 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]
