This is an automated email from the ASF dual-hosted git repository.

zclll pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris-website.git


The following commit(s) were added to refs/heads/master by this push:
     new e874acedb94 [doc](function)add docs for time function (#2449)
e874acedb94 is described below

commit e874acedb94c0f49cf748c36dc88a6afcfb45e0b
Author: koarz <[email protected]>
AuthorDate: Sat Jun 7 12:20:34 2025 +0800

    [doc](function)add docs for time function (#2449)
    
    ## Versions
    
    - [x] dev
    - [ ] 3.0
    - [ ] 2.1
    - [ ] 2.0
    
    ## Languages
    
    - [x] Chinese
    - [x] English
    
    ## Docs Checklist
    
    - [ ] Checked by AI
    - [ ] Test Cases Built
---
 .../scalar-functions/date-time-functions/time.md   | 58 ++++++++++++++++++++++
 .../scalar-functions/date-time-functions/time.md   | 58 ++++++++++++++++++++++
 sidebars.json                                      |  1 +
 3 files changed, 117 insertions(+)

diff --git 
a/docs/sql-manual/sql-functions/scalar-functions/date-time-functions/time.md 
b/docs/sql-manual/sql-functions/scalar-functions/date-time-functions/time.md
new file mode 100644
index 00000000000..4c2693cd9f6
--- /dev/null
+++ b/docs/sql-manual/sql-functions/scalar-functions/date-time-functions/time.md
@@ -0,0 +1,58 @@
+---
+{
+    "title": "TIME",
+    "language": "en"
+}
+---
+
+<!-- 
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+## Description
+The `TIME` function get the Datetime value's `time` part.
+
+## Syntax
+
+```sql
+TIME(<datetime>)
+```
+
+## Parameters
+
+| Parameter      | Description           |
+|----------------|-----------------------|
+| `<datetime>`   | The datetime value.   |
+
+## Return Value
+Returns a `TIME` type value
+
+## Example
+
+```sql
+SELECT TIME('2025-1-1 12:12:12');
+```
+
+```text
+mysql> 
++---------------------------+
+| time('2025-1-1 12:12:12') |
++---------------------------+
+| 12:12:12                  |
++---------------------------+
+```
diff --git 
a/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-functions/scalar-functions/date-time-functions/time.md
 
b/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-functions/scalar-functions/date-time-functions/time.md
new file mode 100644
index 00000000000..5936a41a1c0
--- /dev/null
+++ 
b/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-functions/scalar-functions/date-time-functions/time.md
@@ -0,0 +1,58 @@
+---
+{
+    "title": "TIME",
+    "language": "zh-CN"
+}
+---
+
+<!-- 
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+## 描述
+`TIME` 函数可以获取一个`DateTime`值的 `time` 部分.
+
+## 语法
+
+```sql
+TIME(<datetime>)
+```
+
+## 参数
+
+| 参数           | 描述              |
+|----------------|------------------|
+| `<datetime>`   | 一个datetime值.   |
+
+## 返回值
+返回`TIME`类型的值
+
+## 举例
+
+```sql
+SELECT TIME('2025-1-1 12:12:12');
+```
+
+```text
+mysql> 
++---------------------------+
+| time('2025-1-1 12:12:12') |
++---------------------------+
+| 12:12:12                  |
++---------------------------+
+```
diff --git a/sidebars.json b/sidebars.json
index 3c57f56d056..f055e343f98 100644
--- a/sidebars.json
+++ b/sidebars.json
@@ -1143,6 +1143,7 @@
                                         
"sql-manual/sql-functions/scalar-functions/date-time-functions/extract",
                                         
"sql-manual/sql-functions/scalar-functions/date-time-functions/makedate",
                                         
"sql-manual/sql-functions/scalar-functions/date-time-functions/str-to-date",
+                                        
"sql-manual/sql-functions/scalar-functions/date-time-functions/time",
                                         
"sql-manual/sql-functions/scalar-functions/date-time-functions/timediff",
                                         
"sql-manual/sql-functions/scalar-functions/date-time-functions/timestampadd",
                                         
"sql-manual/sql-functions/scalar-functions/date-time-functions/timestampdiff",


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to