Skip to content

Commit 09f168a

Browse files
add timestamp
1 parent a69cc0d commit 09f168a

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

modules/ROOT/pages/functions/index.adoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,10 @@ Replaced by xref:functions/scalar.adoc#functions-elementid[`elementId()`].
445445
| `startNode(input :: RELATIONSHIP) :: NODE`
446446
| Returns the start `NODE` of a `RELATIONSHIP`.
447447

448+
1.1+| xref::functions/scalar.adoc#functions-timestamp[`timestamp()`]
449+
| `timestamp() :: INTEGER`
450+
| Returns the difference, measured in milliseconds, between the current time and midnight, January 1, 1970 UTC.
451+
448452
1.1+| xref::functions/scalar.adoc#functions-toboolean[`toBoolean()`]
449453
| `toBoolean(input :: BOOLEAN \| STRING \| INTEGER) :: BOOLEAN`
450454
| Converts a `BOOLEAN`, `STRING`, or an `INTEGER` value to a `BOOLEAN` value.

modules/ROOT/pages/functions/scalar.adoc

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -855,14 +855,12 @@ RETURN startNode(r)
855855
.Details
856856
|===
857857
| *Syntax* 3+| `timestamp()`
858-
| *Description* 3+| Returns the difference, measured in milliseconds, between the current time and midnight, January 1, 1970 UTC
858+
| *Description* 3+| Returns the difference, measured in milliseconds, between the current time and midnight, January 1, 1970 UTC.
859859
| *Returns* 3+| `INTEGER`
860860
|===
861861

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

867865
.Considerations
868866
|===

0 commit comments

Comments
 (0)