Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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: 4 additions & 0 deletions modules/ROOT/pages/functions/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,10 @@ Replaced by xref:functions/scalar.adoc#functions-elementid[`elementId()`].
| `startNode(input :: RELATIONSHIP) :: NODE`
| Returns the start `NODE` of a `RELATIONSHIP`.

1.1+| xref::functions/scalar.adoc#functions-timestamp[`timestamp()`]
| `timestamp() :: INTEGER`
| Returns the difference, measured in milliseconds, between the current time and midnight, January 1, 1970 UTC.

1.1+| xref::functions/scalar.adoc#functions-toboolean[`toBoolean()`]
| `toBoolean(input :: BOOLEAN \| STRING \| INTEGER) :: BOOLEAN`
| Converts a `BOOLEAN`, `STRING`, or an `INTEGER` value to a `BOOLEAN` value.
Expand Down
6 changes: 2 additions & 4 deletions modules/ROOT/pages/functions/scalar.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -855,14 +855,12 @@ RETURN startNode(r)
.Details
|===
| *Syntax* 3+| `timestamp()`
| *Description* 3+| Returns the difference, measured in milliseconds, between the current time and midnight, January 1, 1970 UTC
| *Description* 3+| Returns the difference, measured in milliseconds, between the current time and midnight, January 1, 1970 UTC.
| *Returns* 3+| `INTEGER`
|===

[NOTE]
====
It is the equivalent of `datetime().epochMillis`.
====
xref:functions/temporal/index.adoc#functions-datetime-fromepochmillis[`datetime.epochMillis()`] is a functional equivalent to `timestamp()`.

.Considerations
|===
Expand Down