Skip to content

Commit e4bc6f8

Browse files
committed
review suggestions
1 parent 118abe6 commit e4bc6f8

File tree

2 files changed

+20
-5
lines changed

2 files changed

+20
-5
lines changed

modules/ROOT/pages/functions/index.adoc

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ LOAD CSV functions can be used to get information about the file that is process
207207
|===
208208

209209

210-
[[header-query-functions-logarithmic]]
210+
[[header-query-functions-logarithmic]]label:new[Introduced in Neo4j 2025.09] label:cypher[Cypher 25 only]
211211
== Logarithmic functions
212212

213213
These functions all operate on numerical expressions only, and will return an error if used on any other values.
@@ -764,6 +764,22 @@ Values of the xref::values-and-types/temporal.adoc[temporal types] -- `DATE`, `Z
764764
|===
765765

766766

767+
[[header-query-functions-temporal-format]]label:new[Introduced in Neo4j 2025.09] label:cypher[Cypher 25 only]
768+
== Temporal format functions
769+
770+
These functions format temporal instance and duration values:
771+
772+
[options="header"]
773+
|===
774+
| Function | Signature | Description
775+
776+
1.1+| xref::functions/temporal/format.adoc#query-functions-temporal-format-function[`format()`]
777+
| `format(value :: DATE \| LOCAL TIME \| ZONED TIME \| LOCAL DATETIME \| ZONED DATETIME \| DURATION[, pattern :: STRING]) :: STRING`
778+
| Returns the temporal value as an ISO-formatted `STRING` or as a `STRING` formatted by the provided pattern.
779+
780+
|===
781+
782+
767783
[[header-query-functions-user-defined]]
768784
== User-defined functions
769785

modules/ROOT/pages/functions/temporal/format.adoc

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@
44
[[query-functions-temporal-format]]
55
= Temporal functions - format
66

7-
Cypher's `format()` function function creates dynamically formatted string representations of temporal instance and duration types.
8-
[role=label--new-Neo4j-2025.09 label--cypher-25-only]
97
[[query-functions-temporal-format-function]]
108
== format()
119

10+
The `format()` function creates dynamically formatted string representations of temporal instance and duration types.
1211

1312
.Details
1413
|===
@@ -95,15 +94,15 @@ Four occurrences of `E` and `M` (text presentations) output the full form of the
9594
[source, cypher, indent=0]
9695
----
9796
WITH datetime('1986-11-18T6:04:45.123456789+01:00[Europe/Berlin]') AS dt
98-
RETURN format(dt, "DDD'th day of the year,' c'rd day of the week'") AS instanceString
97+
RETURN format(dt, "DDD'nd day of the year,' c'rd day of the week'") AS instanceString
9998
----
10099
101100
.Result
102101
[role="queryresult",options="header,footer",cols="1*<m"]
103102
|===
104103
105104
| instanceString
106-
| "322th day of the year, 3rd day of the week"
105+
| "322nd day of the year, 3rd day of the week"
107106
1+d|Rows: 1
108107
109108
|===

0 commit comments

Comments
 (0)