Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

timestamp()-supports-int #2368

Merged
merged 2 commits into from
Dec 1, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 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 @@ -110,13 +110,13 @@ nebula> RETURN datetime(1625469277);

- 以时间戳形式存储和显示。例如`1615974839`,表示`2021-03-17T17:53:59`。

- 查询`TIMESTAMP`的方式包括时间戳和`timestamp()`函数。
- 查询`TIMESTAMP`类型属性值的方式包括时间戳整数和`timestamp()`函数。

- 插入`TIMESTAMP`的方式包括时间戳、`timestamp()`函数和`now()`函数。
- 插入`TIMESTAMP`类型属性值的方式包括时间戳整数、`timestamp()`函数和`now()`函数。

- `timestamp()`函数支持传入空值获取当前时间戳。
- `timestamp()`函数支持传入空值获取当前时间戳;同时支持传入整数以标识该整数为时间戳,整数取值:`0~9223372036`

- `timestamp()`函数可将`DATETIME`类型的日期值转换成`TIMESTAMP`类型的日期值,且传入的参数为`string`类型。
- `timestamp()`函数可将`DATETIME`类型的日期值转换成`TIMESTAMP`类型的日期值,且传入的`DATETIME`类型的日期值为`string`类型。

- 底层存储的数据格式为** 64 位 int**。

Expand Down