未验证 提交 5067cb85 编写于 作者: G Ganlin Zhao 提交者: GitHub

Update docs.md

上级 76312772
...@@ -1569,7 +1569,7 @@ Starting from version 2.6.0.0, TDengine supports following time related function ...@@ -1569,7 +1569,7 @@ Starting from version 2.6.0.0, TDengine supports following time related function
Example: Example:
```mysql ```mysql
taos> SELECT TODAY() FROM meters; taos> SELECT TIMEZONE() FROM meters;
timezone() | timezone() |
================================= =================================
UTC (UTC, +0000) | UTC (UTC, +0000) |
...@@ -1638,7 +1638,7 @@ Starting from version 2.6.0.0, TDengine supports following time related function ...@@ -1638,7 +1638,7 @@ Starting from version 2.6.0.0, TDengine supports following time related function
- **TIMETRUNCATE** - **TIMETRUNCATE**
```mysql ```mysql
SELECT TIMEDIFF(ts_val | datetime_string | ts_col, time_unit) FROM { tb_name | stb_name } [WHERE clause]; SELECT TIMETRUNCATE(ts_val | datetime_string | ts_col, time_unit) FROM { tb_name | stb_name } [WHERE clause];
``` ```
Function: Truncate timestamp by time_unit. Function: Truncate timestamp by time_unit.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册