Files
doris/docs/en/sql-reference/sql-functions/date-time-functions/curtime.md
steadyBoy 5cc62fa166 [docs] fix document date-time-functions typo (#8053)
1. en: add convert_tz.md
2. en: fix curdate.md, the fix is to modify the title
3. en: add curtime.md
4. en: fix str_to_date.md, the fix is to modify the title
5. zh-CN: fix convert_tz.md, the fix is to modify the description
6. zh-CN: fix curdate.md, the fix is to modify the title
2022-03-02 10:07:44 +08:00

49 lines
1.1 KiB
Markdown

---
{
"title": "curtime,current_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.
-->
# curtime,current_time
## Description
### Syntax
`TIME CURTIME()`
Get the current date and return it in Time type
## Examples
```
mysql> select current_time();
+----------------+
| current_time() |
+----------------+
| 15:25:47 |
+----------------+
```
## keyword
CURTIME,CURRENT_TIME