Skip to content

Commit 76d49f5

Browse files
all
1 parent 685d152 commit 76d49f5

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1562,6 +1562,7 @@ For example, `day` -- with some value `x` -- may be provided when the truncation
15621562
======
15631563
15641564
.Query
1565+
// tag::functions_temporal_datetime_truncate[]
15651566
[source, cypher]
15661567
----
15671568
WITH
@@ -1578,6 +1579,7 @@ RETURN
15781579
datetime.truncate('hour', d) AS truncHour,
15791580
datetime.truncate('second', d) AS truncSecond
15801581
----
1582+
// end::functions_temporal_datetime_truncate[]
15811583
15821584
.Result
15831585
[role="queryresult",options="header,footer",cols="6*<m"]
@@ -2141,6 +2143,7 @@ For example, `day` -- with some value `x` -- may be provided when the truncation
21412143
======
21422144
21432145
.Query
2146+
// tag::functions_temporal_localdatetime_truncate[]
21442147
[source, cypher]
21452148
----
21462149
WITH
@@ -2156,6 +2159,7 @@ RETURN
21562159
localdatetime.truncate('hour', d, {nanosecond: 2}) AS truncHour,
21572160
localdatetime.truncate('second', d) AS truncSecond
21582161
----
2162+
// end::functions_temporal_localdatetime_truncate[]
21592163
21602164
.Result
21612165
[role="queryresult",options="header,footer",cols="6*<m"]
@@ -2538,6 +2542,7 @@ However, the timezone of `input` is retained.
25382542
======
25392543
25402544
.Query
2545+
// tag::functions_temporal_localtime_truncate[]
25412546
[source, cypher]
25422547
----
25432548
WITH time({hour: 12, minute: 31, second: 14, nanosecond: 645876123, timezone: '-01:00'}) AS t
@@ -2549,6 +2554,7 @@ RETURN
25492554
localtime.truncate('millisecond', t) AS truncMillisecond,
25502555
localtime.truncate('microsecond', t) AS truncMicrosecond
25512556
----
2557+
// end::functions_temporal_localtime_truncate[]
25522558
25532559
.Result
25542560
[role="queryresult",options="header,footer",cols="6*<m"]
@@ -2837,11 +2843,11 @@ However, a different value may be produced for different statements within the s
28372843
28382844
.Query
28392845
// tag::functions_temporal_time_statement[]
2840-
28412846
[source, cypher]
28422847
----
28432848
RETURN time.statement() AS currentTime
28442849
----
2850+
// end::functions_temporal_time_statement[]
28452851
28462852
.Result
28472853
[role="queryresult",options="header,footer",cols="1*<m"]
@@ -2955,6 +2961,7 @@ For example, `minute` -- with some value `x` -- may be provided when the truncat
29552961
======
29562962
29572963
.Query
2964+
// tag::functions_temporal_time_truncate[]
29582965
[source, cypher]
29592966
----
29602967
WITH time({hour: 12, minute: 31, second: 14, nanosecond: 645876123, timezone: '-01:00'}) AS t
@@ -2966,6 +2973,7 @@ RETURN
29662973
time.truncate('millisecond', t, {nanosecond: 2}) AS truncMillisecond,
29672974
time.truncate('microsecond', t) AS truncMicrosecond
29682975
----
2976+
// end::functions_temporal_time_truncate[]
29692977
29702978
.Result
29712979
[role="queryresult",options="header,footer",cols="6*<m"]

0 commit comments

Comments
 (0)