Skip to content

Commit

Permalink
Update 4.date-and-time.md (#798)
Browse files Browse the repository at this point in the history
  • Loading branch information
izhuxiaoqing authored Oct 15, 2021
1 parent 4caa408 commit a2a438c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 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 @@ -129,12 +129,12 @@ The `TIMESTAMP` data type is used for values that contain both date and time par
You can also use `WITH` statement to set a specific date and time. For example:

```ngql
nebula> WITH time({hour: 12, minute: 31, second: 14}) AS d RETURN d;
+--------------+
| d |
+--------------+
| 12:31:14.000 |
+--------------+
nebula> WITH time({hour: 12, minute: 31, second: 14, millisecond:111, microsecond: 222}) AS d RETURN d;
+-----------------+
| d |
+-----------------+
| 12:31:14.111222 |
+-----------------+
nebula> WITH date({year: 1984, month: 10, day: 11}) AS x RETURN x + 1;
+------------+
Expand Down

0 comments on commit a2a438c

Please sign in to comment.