Skip to content

Commit

Permalink
timestamp()-supports-int (#2368)
Browse files Browse the repository at this point in the history
* timestamp()-supports-int

* Update 4.date-and-time.md
  • Loading branch information
abby-cyber authored Dec 1, 2022
1 parent 8c23cd9 commit eca948d
Showing 1 changed file with 4 additions and 4 deletions.
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

0 comments on commit eca948d

Please sign in to comment.