Skip to content

Commit 95edab1

Browse files
4.4 timestamp (#1256)
1 parent 1f72c00 commit 95edab1

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

modules/ROOT/pages/functions/index.adoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,10 @@ These functions return a single value.
140140
| `startNode(input :: RELATIONSHIP?) :: (NODE?)`
141141
| Returns the start node of a relationship.
142142

143+
1.1+| xref::functions/scalar.adoc#functions-timestamp[`timestamp()`]
144+
| `timestamp() :: (INTEGER?)`
145+
| Returns the difference, measured in milliseconds, between the current time and midnight, January 1, 1970 UTC.
146+
143147
1.3+| xref::functions/scalar.adoc#functions-toboolean[`toBoolean()`]
144148
| `toBoolean(input :: STRING?) :: (BOOLEAN?)`
145149
| Converts a string value to a boolean value.

modules/ROOT/pages/functions/scalar.adoc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -840,9 +840,7 @@ RETURN startNode(r)
840840
The function `timestamp()` returns the difference, measured in milliseconds, between the current time and midnight, January 1, 1970 UTC.
841841

842842
[NOTE]
843-
====
844-
It is the equivalent of `datetime().epochMillis`.
845-
====
843+
`datetime.fromEpochMillis()` is a functional equivalent to `timestamp()`.
846844

847845
*Syntax:*
848846

0 commit comments

Comments
 (0)