From 5067cb85d7d81937543e35225bdb682db439fe0a Mon Sep 17 00:00:00 2001 From: Ganlin Zhao <36554565+glzhao89@users.noreply.github.com> Date: Thu, 17 Mar 2022 14:41:14 +0800 Subject: [PATCH] Update docs.md --- documentation20/en/12.taos-sql/docs.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/documentation20/en/12.taos-sql/docs.md b/documentation20/en/12.taos-sql/docs.md index 2b2f5a6725..99a440162b 100755 --- a/documentation20/en/12.taos-sql/docs.md +++ b/documentation20/en/12.taos-sql/docs.md @@ -1569,7 +1569,7 @@ Starting from version 2.6.0.0, TDengine supports following time related function Example: ```mysql - taos> SELECT TODAY() FROM meters; + taos> SELECT TIMEZONE() FROM meters; timezone() | ================================= UTC (UTC, +0000) | @@ -1638,7 +1638,7 @@ Starting from version 2.6.0.0, TDengine supports following time related function - **TIMETRUNCATE** ```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. -- GitLab