Skip to content

Conversation

@linrrzqqq
Copy link
Contributor

Versions

  • dev
  • 4.x
  • 3.x
  • 2.1

Languages

  • Chinese
  • English

Docs Checklist

  • Checked by AI
  • Test Cases Built

@linrrzqqq linrrzqqq requested a review from zclllyybb as a code owner December 2, 2025 02:08
@zclllyybb zclllyybb merged commit dde00ef into apache:master Jan 4, 2026
1 of 2 checks passed
@linrrzqqq linrrzqqq deleted the time-format branch January 9, 2026 01:45
zclllyybb pushed a commit to apache/doris that referenced this pull request Jan 9, 2026
doc: apache/doris-website#3135

The TIME_FORMAT function is used to convert a time value into a string
according to the specified format string. It supports formatting for
TIME and DATETIME types, and the output is a string that conforms to the
format requirements.

```sql
SELECT TIME_FORMAT('2025-11-25 15:30:45', '%Y-%m-%d %H:%i:%s') AS date_with_time;
```
```text
+---------------------+
| date_with_time      |
+---------------------+
| 0000-00-00 15:30:45 |
+---------------------+
```
linrrzqqq added a commit to linrrzqqq/doris that referenced this pull request Jan 9, 2026
doc: apache/doris-website#3135

The TIME_FORMAT function is used to convert a time value into a string
according to the specified format string. It supports formatting for
TIME and DATETIME types, and the output is a string that conforms to the
format requirements.

```sql
SELECT TIME_FORMAT('2025-11-25 15:30:45', '%Y-%m-%d %H:%i:%s') AS date_with_time;
```
```text
+---------------------+
| date_with_time      |
+---------------------+
| 0000-00-00 15:30:45 |
+---------------------+
```
linrrzqqq added a commit to linrrzqqq/doris that referenced this pull request Jan 9, 2026
doc: apache/doris-website#3135

The TIME_FORMAT function is used to convert a time value into a string
according to the specified format string. It supports formatting for
TIME and DATETIME types, and the output is a string that conforms to the
format requirements.

```sql
SELECT TIME_FORMAT('2025-11-25 15:30:45', '%Y-%m-%d %H:%i:%s') AS date_with_time;
```
```text
+---------------------+
| date_with_time      |
+---------------------+
| 0000-00-00 15:30:45 |
+---------------------+
```
linrrzqqq added a commit to linrrzqqq/doris that referenced this pull request Jan 11, 2026
doc: apache/doris-website#3135

The TIME_FORMAT function is used to convert a time value into a string
according to the specified format string. It supports formatting for
TIME and DATETIME types, and the output is a string that conforms to the
format requirements.

```sql
SELECT TIME_FORMAT('2025-11-25 15:30:45', '%Y-%m-%d %H:%i:%s') AS date_with_time;
```
```text
+---------------------+
| date_with_time      |
+---------------------+
| 0000-00-00 15:30:45 |
+---------------------+
```
yiguolei pushed a commit to apache/doris that referenced this pull request Jan 12, 2026
…#59704)

pick: #58592

doc: apache/doris-website#3135

The TIME_FORMAT function is used to convert a time value into a string
according to the specified format string. It supports formatting for
TIME and DATETIME types, and the output is a string that conforms to the
format requirements.

```sql
SELECT TIME_FORMAT('2025-11-25 15:30:45', '%Y-%m-%d %H:%i:%s') AS date_with_time;
```
```text
+---------------------+
| date_with_time      |
+---------------------+
| 0000-00-00 15:30:45 |
+---------------------+
```

### What problem does this PR solve?

Issue Number: close #xxx

Related PR: #xxx

Problem Summary:

### Release note

None

### Check List (For Author)

- Test <!-- At least one of them must be included. -->
    - [ ] Regression test
    - [ ] Unit Test
    - [ ] Manual test (add detailed scripts or steps below)
    - [ ] No need to test or manual test. Explain why:
- [ ] This is a refactor/code format and no logic has been changed.
        - [ ] Previous test can cover this change.
        - [ ] No code files have been changed.
        - [ ] Other reason <!-- Add your reason?  -->

- Behavior changed:
    - [ ] No.
    - [ ] Yes. <!-- Explain the behavior change -->

- Does this need documentation?
    - [ ] No.
- [ ] Yes. <!-- Add document PR link here. eg:
apache/doris-website#1214 -->

### Check List (For Reviewer who merge this PR)

- [ ] Confirm the release note
- [ ] Confirm test cases
- [ ] Confirm document
- [ ] Add branch pick label <!-- Add branch pick label that this PR
should merge into -->
zzzxl1993 pushed a commit to zzzxl1993/doris that referenced this pull request Jan 13, 2026
doc: apache/doris-website#3135

The TIME_FORMAT function is used to convert a time value into a string
according to the specified format string. It supports formatting for
TIME and DATETIME types, and the output is a string that conforms to the
format requirements.

```sql
SELECT TIME_FORMAT('2025-11-25 15:30:45', '%Y-%m-%d %H:%i:%s') AS date_with_time;
```
```text
+---------------------+
| date_with_time      |
+---------------------+
| 0000-00-00 15:30:45 |
+---------------------+
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants