You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/ROOT/pages/expressions/temporal-operators.adoc
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,7 +67,7 @@ For additional expressions that evaluate to a xref:values-and-types/temporal.ado
67
67
`DURATION` values can be added and subtracted from temporal instant values, such as `LOCAL DATETIME`.
68
68
In the below example, the xref:functions/temporal/index.adoc#functions-localdatetime[`localdatetime()`] function is used to create a `LOCAL DATETIME` value, and the xref:functions/temporal/duration.adoc#functions-durations[`duration()`] function is used to create a `DURATION` value.
69
69
70
-
.Add and subtract a `DURATION` value
70
+
.Add and subtract a `DURATION` value to/from a `LOCAL DATETIME`
71
71
[source, cypher]
72
72
----
73
73
WITH localdatetime({year:1984, month:10, day:11, hour:12, minute:31, second:14}) AS aDateTime,
@@ -135,7 +135,7 @@ When adding or subtracting a `DURATION` value to a temporal instant value, any x
135
135
For example, when adding a `DURATION` to a `DATE`, only the `year`, `month`, and `day` components of a `DURATION` value are considered, while `hour`, `minute`, `second`, and `nanosecond` are ignored.
136
136
This behavior also applies to `LOCAL TIME` and `ZONED TIME`.
137
137
138
-
.Adding and subtracting a `DURATION` to/from a `DATE`
138
+
.Add and subtract a `DURATION` to/from a `DATE`
139
139
[source, cypher]
140
140
----
141
141
WITH date({year:1984, month:10, day:11}) AS aDate,
@@ -161,7 +161,7 @@ In multiplication, the value of each component is multiplied by the given factor
161
161
If the result of the division does not fit into the original components, it overflows into smaller components (e.g. converting days into hours).
162
162
This overflow also occurs when multiplying with fractions.
163
163
164
-
.Multiplying and dividing a `DURATION` value
164
+
.Multiply and divide a `DURATION` value
165
165
[source, cypher]
166
166
----
167
167
WITH duration({days: 14, minutes: 12, seconds: 70, nanoseconds: 1}) AS aDuration
0 commit comments