Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
12 changes: 8 additions & 4 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 Expand Up @@ -648,12 +652,12 @@ Values of the xref::values-and-types/temporal.adoc[temporal types] -- `DATE`, `Z
| `datetime(input = DEFAULT_TEMPORAL_ARGUMENT :: ANY) :: ZONED DATETIME`
| Creates a `ZONED DATETIME` instant.

1.1+| xref::functions/temporal/index.adoc#functions-datetime-timestamp[`datetime.fromepoch()`]
| `datetime.fromepoch(seconds :: INTEGER \| FLOAT, nanoseconds :: INTEGER \| FLOAT) :: ZONED DATETIME`
1.1+| xref::functions/temporal/index.adoc#functions-datetime-timestamp[`datetime.fromEpoch()`]
| `datetime.fromEpoch(seconds :: INTEGER \| FLOAT, nanoseconds :: INTEGER \| FLOAT) :: ZONED DATETIME`
| Creates a `ZONED DATETIME` given the seconds and nanoseconds since the start of the epoch.

1.1+| xref::functions/temporal/index.adoc#functions-datetime-timestamp[`datetime.fromepochmillis()`]
| `datetime.fromepochmillis(milliseconds :: INTEGER \| FLOAT) :: ZONED DATETIME`
1.1+| xref::functions/temporal/index.adoc#functions-datetime-timestamp[`datetime.fromEpochMillis()`]
| `datetime.fromEpochMillis(milliseconds :: INTEGER \| FLOAT) :: ZONED DATETIME`
| Creates a `ZONED DATETIME` given the milliseconds since the start of the epoch.

1.1+| xref::functions/temporal/index.adoc#functions-datetime-realtime[`datetime.realtime()`]
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.fromEpochMillis()`] is a functional equivalent to `timestamp()`.

.Considerations
|===
Expand Down
4 changes: 2 additions & 2 deletions modules/ROOT/pages/functions/temporal/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -1318,7 +1318,7 @@ RETURN datetime({epochMillis: 424797300000}) AS theDate

.Details
|===
| *Syntax* 3+| `datetime.fromepoch(seconds, nanoseconds)`
| *Syntax* 3+| `datetime.fromEpoch(seconds, nanoseconds)`
| *Description* 3+| Creates a `ZONED DATETIME` given the seconds and nanoseconds since the start of the epoch.
.3+| *Arguments* | *Name* | *Type* | *Description*
| `seconds` | `INTEGER \| FLOAT` | The number of seconds from the UNIX epoch in the UTC timezone.
Expand Down Expand Up @@ -1354,7 +1354,7 @@ RETURN dateTimeFromEpoch

.Details
|===
| *Syntax* 3+| `datetime.fromepochmillis(milliseconds)`
| *Syntax* 3+| `datetime.fromEpochMillis(milliseconds)`
| *Description* 3+| Creates a `ZONED DATETIME` given the milliseconds since the start of the epoch.
.2+| *Arguments* | *Name* | *Type* | *Description*
| `milliseconds` | `INTEGER \| FLOAT` | The number of milliseconds from the UNIX epoch in the UTC timezone.
Expand Down