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

update TIMESTAMP #2341

Merged
merged 1 commit into from
Nov 23, 2022
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions docs-2.0/2.quick-start/6.cheatsheet-for-ngql-command.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@

| 函数 | 说明 |
| :-------------------- | :------------------------------------------ |
| int now() | 根据当前系统返回当前时区的时间戳。 |
| timestamp timestamp() | 根据当前系统返回当前时区的时间戳。 |
| int now() | 根据当前系统返回当前时间戳。 |
| timestamp timestamp() | 根据当前系统返回当前时间戳。 |
| date date() | 根据当前系统返回当前日期(UTC 时间)。 |
| time time() | 根据当前系统返回当前时间(UTC 时间)。 |
| datetime datetime() | 根据当前系统返回当前日期和时间(UTC 时间)。 |
Expand Down
2 changes: 1 addition & 1 deletion 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 @@ -114,7 +114,7 @@ nebula> RETURN datetime(1625469277);

- 插入`TIMESTAMP`的方式包括时间戳、`timestamp()`函数和`now()`函数。

- `timestamp()`函数支持传入空值获取当前时区的时间戳
- `timestamp()`函数支持传入空值获取当前时间戳

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ NebulaGraph 支持以下内置日期时间函数。

|函数| 说明 |
|:---- | :----|
|int now() | 根据当前系统返回当前时区的时间戳。 |
|timestamp timestamp() | 根据当前系统返回当前时区的时间戳。 |
|int now() | 根据当前系统返回当前时间戳。 |
|timestamp timestamp() | 根据当前系统返回当前时间戳。 |
|date date() | 根据当前系统返回当前日期(UTC 时间)。 |
|time time() | 根据当前系统返回当前时间(UTC 时间)。 |
|datetime datetime() | 根据当前系统返回当前日期和时间(UTC 时间)。 |
Expand Down