From fc38b4335a6c6095d2565d208393c5c852e3ebae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jens=20Pryce-=C3=85klundh?= <112686610+JPryce-Aklundh@users.noreply.github.com> Date: Mon, 28 Apr 2025 10:14:22 +0200 Subject: [PATCH] 4.4 timestamp --- modules/ROOT/pages/functions/index.adoc | 4 ++++ modules/ROOT/pages/functions/scalar.adoc | 4 +--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/modules/ROOT/pages/functions/index.adoc b/modules/ROOT/pages/functions/index.adoc index 4f591652b..8111aa445 100644 --- a/modules/ROOT/pages/functions/index.adoc +++ b/modules/ROOT/pages/functions/index.adoc @@ -140,6 +140,10 @@ These functions return a single value. | `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.3+| xref::functions/scalar.adoc#functions-toboolean[`toBoolean()`] | `toBoolean(input :: STRING?) :: (BOOLEAN?)` | Converts a string value to a boolean value. diff --git a/modules/ROOT/pages/functions/scalar.adoc b/modules/ROOT/pages/functions/scalar.adoc index 530d2170c..86040acc6 100644 --- a/modules/ROOT/pages/functions/scalar.adoc +++ b/modules/ROOT/pages/functions/scalar.adoc @@ -840,9 +840,7 @@ RETURN startNode(r) The function `timestamp()` returns the difference, measured in milliseconds, between the current time and midnight, January 1, 1970 UTC. [NOTE] -==== -It is the equivalent of `datetime().epochMillis`. -==== +`datetime.fromEpochMillis()` is a functional equivalent to `timestamp()`. *Syntax:*