Skip to content

Commit e64ba83

Browse files
committed
jh-v3-fix-unix-stamp
1 parent 6c4134d commit e64ba83

File tree

6 files changed

+42
-0
lines changed
  • docs/sql-manual/sql-functions/scalar-functions/date-time-functions
  • i18n/zh-CN/docusaurus-plugin-content-docs
    • current/sql-manual/sql-functions/scalar-functions/date-time-functions
    • version-2.1/sql-manual/sql-functions/scalar-functions/date-time-functions
    • version-3.0/sql-manual/sql-functions/scalar-functions/date-time-functions
  • versioned_docs
    • version-2.1/sql-manual/sql-functions/scalar-functions/date-time-functions
    • version-3.0/sql-manual/sql-functions/scalar-functions/date-time-functions

6 files changed

+42
-0
lines changed

docs/sql-manual/sql-functions/scalar-functions/date-time-functions/unix-timestamp.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ UNIX_TIMESTAMP([DATETIME date[, STRING fmt]])
2424

2525
```
2626

27+
## Parameter
28+
29+
| Paramters | Description |
30+
| -- | -- |
31+
| `<date>` | The datetime value to be converted is of type `datetime`, with a convertible range from '1970-01-01 00:00:01.000000 UTC' to '3001-01-19 03:14:07.999999 UTC'.|
32+
| `<fmt>` | The 'date' parameter refers to the specific part that needs to be converted into a timestamp, and it is a parameter of type string. If this parameter is provided, only the part matching the format will be converted into a timestamp. |
33+
2734
## Return value
2835
Returns two types based on the input:
2936

i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-functions/scalar-functions/date-time-functions/unix-timestamp.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ UNIX_TIMESTAMP([DATETIME date[, STRING fmt]])
2424

2525
```
2626

27+
## 参数
28+
29+
| 参数 | 描述 |
30+
| -- | -- |
31+
| `<date>` | 待转换的日期时间值,类型为 `datetime`,可转换范围为 '1970-01-01 00:00:01.000000 UTC' 至 '3001-01-19 03:14:07.999999 UTC'。|
32+
| `<fmt>` | date 参数指代需要转换为时间戳的特定部分,其类型为 `string`。若提供该参数,则仅将与格式匹配的部分转换为时间戳。 |
33+
2734
## 返回值
2835
根据输入返回两种类型
2936
1.若是输入的 datetime scale 不为0 或者带有 format 参数

i18n/zh-CN/docusaurus-plugin-content-docs/version-2.1/sql-manual/sql-functions/scalar-functions/date-time-functions/unix-timestamp.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ UNIX_TIMESTAMP([DATETIME date[, STRING fmt]])
2424

2525
```
2626

27+
## 参数
28+
29+
| 参数 | 描述 |
30+
| -- | -- |
31+
| `<date>` | 待转换的日期时间值,类型为 `datetime`,可转换范围为 '1970-01-01 00:00:01.000000 UTC' 至 '3001-01-19 03:14:07.999999 UTC'。|
32+
| `<fmt>` | date 参数指代需要转换为时间戳的特定部分,其类型为 `string`。若提供该参数,则仅将与格式匹配的部分转换为时间戳。 |
33+
2734
## 返回值
2835
根据输入返回两种类型
2936
1.若是输入的 datetime scale 不为0 或者带有 format 参数

i18n/zh-CN/docusaurus-plugin-content-docs/version-3.0/sql-manual/sql-functions/scalar-functions/date-time-functions/unix-timestamp.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ UNIX_TIMESTAMP([DATETIME date[, STRING fmt]])
2424

2525
```
2626

27+
## 参数
28+
29+
| 参数 | 描述 |
30+
| -- | -- |
31+
| `<date>` | 待转换的日期时间值,类型为 `datetime`,可转换范围为 '1970-01-01 00:00:01.000000 UTC' 至 '3001-01-19 03:14:07.999999 UTC'。|
32+
| `<fmt>` | date 参数指代需要转换为时间戳的特定部分,其类型为 `string`。若提供该参数,则仅将与格式匹配的部分转换为时间戳。 |
33+
2734
## 返回值
2835
根据输入返回两种类型
2936
1.若是输入的 datetime scale 不为0 或者带有 format 参数

versioned_docs/version-2.1/sql-manual/sql-functions/scalar-functions/date-time-functions/unix-timestamp.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ UNIX_TIMESTAMP([DATETIME date[, STRING fmt]])
2424

2525
```
2626

27+
## Parameter
28+
29+
| Paramters | Description |
30+
| -- | -- |
31+
| `<date>` | The datetime value to be converted is of type `datetime`, with a convertible range from '1970-01-01 00:00:01.000000 UTC' to '3001-01-19 03:14:07.999999 UTC'.|
32+
| `<fmt>` | The 'date' parameter refers to the specific part that needs to be converted into a timestamp, and it is a parameter of type string. If this parameter is provided, only the part matching the format will be converted into a timestamp. |
33+
2734
## Return value
2835
Returns two types based on the input:
2936

versioned_docs/version-3.0/sql-manual/sql-functions/scalar-functions/date-time-functions/unix-timestamp.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ UNIX_TIMESTAMP([DATETIME date[, STRING fmt]])
2424

2525
```
2626

27+
## Parameter
28+
29+
| Paramters | Description |
30+
| -- | -- |
31+
| `<date>` | The datetime value to be converted is of type `datetime`, with a convertible range from '1970-01-01 00:00:01.000000 UTC' to '3001-01-19 03:14:07.999999 UTC'.|
32+
| `<fmt>` | The 'date' parameter refers to the specific part that needs to be converted into a timestamp, and it is a parameter of type string. If this parameter is provided, only the part matching the format will be converted into a timestamp. |
33+
2734
## Return value
2835
Returns two types based on the input:
2936

0 commit comments

Comments
 (0)