Skip to content

Commit

Permalink
Merge pull request #4203 from soerenwolfers/patch-52
Browse files Browse the repository at this point in the history
Update time.md
  • Loading branch information
szarnyasg authored Dec 3, 2024
2 parents e5932be + 9b8cfa7 commit 3f76ce7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/sql/functions/time.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ The table below shows the available scalar functions for `TIME` types.

| Name | Description |
|:--|:-------|
| [`current_time`](#current_time) | Current time (start of current transaction). |
| [`current_time`](#current_time) | Current time (start of current transaction) in UTC. |
| [`date_diff(part, starttime, endtime)`](#date_diffpart-starttime-endtime) | The number of [partition]({% link docs/sql/functions/datepart.md %}) boundaries between the times. |
| [`date_part(part, time)`](#date_partpart-time) | Get [subfield]({% link docs/sql/functions/datepart.md %}) (equivalent to `extract`). |
| [`date_sub(part, starttime, endtime)`](#date_subpart-starttime-endtime) | The number of complete [partitions]({% link docs/sql/functions/datepart.md %}) between the times. |
| [`datediff(part, starttime, endtime)`](#datediffpart-starttime-endtime) | Alias of `date_diff`. The number of [partition]({% link docs/sql/functions/datepart.md %}) boundaries between the times. |
| [`datepart(part, time)`](#datepartpart-time) | Alias of date_part. Get [subfield]({% link docs/sql/functions/datepart.md %}) (equivalent to `extract`). |
| [`datesub(part, starttime, endtime)`](#datesubpart-starttime-endtime) | Alias of date_sub. The number of complete [partitions]({% link docs/sql/functions/datepart.md %}) between the times. |
| [`extract(part FROM time)`](#extractpart-from-time) | Get subfield from a time. |
| [`get_current_time()`](#get_current_time) | Current time (start of current transaction). |
| [`get_current_time()`](#get_current_time) | Current time (start of current transaction) in UTC. |
| [`make_time(bigint, bigint, double)`](#make_timebigint-bigint-double) | The time for the given parts. |

The only [date parts]({% link docs/sql/functions/datepart.md %}) that are defined for times are `epoch`, `hours`, `minutes`, `seconds`, `milliseconds` and `microseconds`.
Expand All @@ -41,7 +41,7 @@ The only [date parts]({% link docs/sql/functions/datepart.md %}) that are define

<div class="nostroke_table"></div>

| **Description** | Current time (start of current transaction). Note that parentheses should be omitted. |
| **Description** | Current time (start of current transaction) in UTC. Note that parentheses should be omitted. |
| **Example** | `current_time` |
| **Result** | `10:31:58.578` |
| **Alias** | `get_current_time()` |
Expand Down Expand Up @@ -106,7 +106,7 @@ The only [date parts]({% link docs/sql/functions/datepart.md %}) that are define

<div class="nostroke_table"></div>

| **Description** | Current time (start of current transaction). |
| **Description** | Current time (start of current transaction) in UTC. |
| **Example** | `get_current_time()` |
| **Result** | `10:31:58.578` |
| **Alias** | `current_time` |
Expand Down

0 comments on commit 3f76ce7

Please sign in to comment.