Skip to content

Commit

Permalink
timestamp()-supports-int (#1795)
Browse files Browse the repository at this point in the history
  • Loading branch information
abby-cyber authored Dec 1, 2022
1 parent 1a39f50 commit 252c7c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs-2.0/3.ngql-guide/3.data-types/4.date-and-time.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@ The `TIMESTAMP` data type is used for values that contain both date and time par

- Supported `TIMESTAMP` inserting methods: timestamp, `timestamp()` function, and `now()` function.

- `timestamp()` function accepts empty arguments to get the current timestamp.
- `timestamp()` function accepts empty arguments to get the current timestamp. It can pass an integer arguments to identify the integer as a timestamp and the range of passed integer is: `0~9223372036`

- `timestamp()` function can convert `DATETIME` to `TIMESTAMP`. The data type of `DATETIME` should be a `string`.
- `timestamp()` function can convert `DATETIME` to `TIMESTAMP`, and the data type of `DATETIME` should be a `string`.

- The underlying storage data type is **int64**.

Expand Down

0 comments on commit 252c7c9

Please sign in to comment.