Skip to content

Commit

Permalink
Update 4.date-and-time.md (#1095)
Browse files Browse the repository at this point in the history
  • Loading branch information
randomJoe211 authored Oct 26, 2021
1 parent 5c06dea commit bc136ff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 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 @@ -54,15 +54,15 @@

```ngql
# 传入当前时间。
nebula> return timestamp();
nebula> RETURN timestamp();
+-------------+
| timestamp() |
+-------------+
| 1625469277 |
+-------------+
# 传入指定时间。
nebula> return timestamp("2021-07-05T06:18:43.984000");
nebula> RETURN timestamp("2021-07-05T06:18:43.984000");
+-----------------------------------------+
| timestamp("2021-07-05T06:18:43.984000") |
+-----------------------------------------+
Expand Down Expand Up @@ -137,7 +137,7 @@ nebula> WITH time({hour: 12, minute: 31, second: 14, millisecond:111, microsecon
nebula> WITH date({year: 1984, month: 10, day: 11}) AS x RETURN x + 1;
+------------+
| x |
| (x+1) |
+------------+
| 1984-10-12 |
+------------+
Expand Down

0 comments on commit bc136ff

Please sign in to comment.