Skip to content

Commit

Permalink
update TIMESTAMP (#1772)
Browse files Browse the repository at this point in the history
  • Loading branch information
cooper-lzy authored Nov 23, 2022
1 parent d01ceba commit 305763c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs-2.0/2.quick-start/6.cheatsheet-for-ngql.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@

|Function| Description |
|---- | ----|
|int now() | Returns the current date and time of the system timezone. |
|timestamp timestamp() | Returns the current date and time of the system timezone. |
|int now() | Returns the current timestamp of the system. |
|timestamp timestamp() | Returns the current timestamp of the system. |
|date date() | Returns the current UTC date based on the current system. |
|time time() | Returns the current UTC time based on the current system. |
|datetime datetime() | Returns the current UTC date and time based on the current system. |
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 @@ -96,7 +96,7 @@ 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 timestamp of the current timezone.
- `timestamp()` function accepts empty arguments to get the current timestamp.

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ NebulaGraph supports the following built-in date and time functions:

| Function | Description |
|:-- |:-- |
| int now() | Returns the current date and time of the system time zone. |
| timestamp timestamp() | Returns the current date and time of the system time zone. |
| int now() | Returns the current timestamp of the system. |
| timestamp timestamp() | Returns the current timestamp of the system. |
| date date() | Returns the current UTC date based on the current system. |
| time time() | Returns the current UTC time based on the current system. |
| datetime datetime() | Returns the current UTC date and time based on the current system. |
Expand Down

0 comments on commit 305763c

Please sign in to comment.