Skip to content

Commit 6c4134d

Browse files
committed
jh-v2-fix-unix-stamp
1 parent c0d3ab7 commit 6c4134d

File tree

3 files changed

+12
-12
lines changed
  • docs/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

3 files changed

+12
-12
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ UNIX_TIMESTAMP([DATETIME date[, STRING fmt]])
2727
## Return value
2828
Returns two types based on the input:
2929

30-
1. If the input datetime scale is not 0 or a format parameter is provided,
31-
2. returns a timestamp of type Decimal with a maximum precision of six decimal places.
32-
If the input datetime scale is 0 and no format parameter is provided,
30+
- If the input datetime scale is not 0 or a format parameter is provided,
31+
returns a timestamp of type Decimal with a maximum precision of six decimal places.
32+
- If the input datetime scale is 0 and no format parameter is provided,
3333
returns a timestamp of type INT.
3434

35-
For times before '1970-01-01 00:00:01.000000 UTC' or after '3001-01-19 03:14:07.999999 UTC', the function returns 0.
35+
- For times before '1970-01-01 00:00:01.000000 UTC' or after '3001-01-19 03:14:07.999999 UTC', the function returns 0.
3636

3737
Returns NULL if any argument is NULL.
3838

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ UNIX_TIMESTAMP([DATETIME date[, STRING fmt]])
2727
## Return value
2828
Returns two types based on the input:
2929

30-
1. If the input datetime scale is not 0 or a format parameter is provided,
31-
2. returns a timestamp of type Decimal with a maximum precision of six decimal places.
32-
If the input datetime scale is 0 and no format parameter is provided,
30+
- If the input datetime scale is not 0 or a format parameter is provided,
31+
returns a timestamp of type Decimal with a maximum precision of six decimal places.
32+
- If the input datetime scale is 0 and no format parameter is provided,
3333
returns a timestamp of type INT.
3434

35-
For times before '1970-01-01 00:00:01.000000 UTC' or after '3001-01-19 03:14:07.999999 UTC', the function returns 0.
35+
- For times before '1970-01-01 00:00:01.000000 UTC' or after '3001-01-19 03:14:07.999999 UTC', the function returns 0.
3636

3737
Returns NULL if any argument is NULL.
3838

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ UNIX_TIMESTAMP([DATETIME date[, STRING fmt]])
2727
## Return value
2828
Returns two types based on the input:
2929

30-
1. If the input datetime scale is not 0 or a format parameter is provided,
31-
2. returns a timestamp of type Decimal with a maximum precision of six decimal places.
32-
If the input datetime scale is 0 and no format parameter is provided,
30+
- If the input datetime scale is not 0 or a format parameter is provided,
31+
returns a timestamp of type Decimal with a maximum precision of six decimal places.
32+
- If the input datetime scale is 0 and no format parameter is provided,
3333
returns a timestamp of type INT.
3434

35-
For times before '1970-01-01 00:00:01.000000 UTC' or after '3001-01-19 03:14:07.999999 UTC', the function returns 0.
35+
- For times before '1970-01-01 00:00:01.000000 UTC' or after '3001-01-19 03:14:07.999999 UTC', the function returns 0.
3636

3737
Returns NULL if any argument is NULL.
3838

0 commit comments

Comments
 (0)