zclllyybb commented on code in PR #2677:
URL: https://github.com/apache/doris-website/pull/2677#discussion_r2241404892
##########
i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-functions/scalar-functions/date-time-functions/unix-timestamp.md:
##########
@@ -23,6 +25,14 @@ Format 的格式请参阅 `date_format` 函数的格式说明。
该函数受时区影响。
+## 返回值
+根据输入返回两种类型
+1.若是输入的 datetime 带有小数位
Review Comment:
不要用带有小数位这种说法,用"scale 为 0"或者不为0来表示
##########
i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-functions/scalar-functions/date-time-functions/unix-timestamp.md:
##########
@@ -62,6 +72,15 @@ mysql> select unix_timestamp('1969-01-01 00:00:00');
+---------------------------------------+
```
+输入时间带小数
+
+mysql> SELECT UNIX_TIMESTAMP('2015-11-13 10:20:19.0122222');
Review Comment:
这个case有问题还没修,你把小数换成.123这种吧
##########
i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-functions/scalar-functions/date-time-functions/unix-timestamp.md:
##########
@@ -23,6 +25,14 @@ Format 的格式请参阅 `date_format` 函数的格式说明。
该函数受时区影响。
+## 返回值
+根据输入返回两种类型
+1.若是输入的 datetime 带有小数位
+返回一个时间戳,类型为 Decimal,只有六位小数精度
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]