From 2542390348a25210df07551d547517c92765cd5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jens=20Pryce-=C3=85klundh?= <112686610+JPryce-Aklundh@users.noreply.github.com> Date: Wed, 26 Mar 2025 16:01:42 +0100 Subject: [PATCH 1/3] add epocmillis tags --- modules/ROOT/pages/functions/temporal/index.adoc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/modules/ROOT/pages/functions/temporal/index.adoc b/modules/ROOT/pages/functions/temporal/index.adoc index 3354a69a4..aecca4477 100644 --- a/modules/ROOT/pages/functions/temporal/index.adoc +++ b/modules/ROOT/pages/functions/temporal/index.adoc @@ -1326,11 +1326,13 @@ RETURN datetime({epochMillis: 424797300000}) AS theDate ====== .Query +// tag::functions_temporal_datetime_fromepoch [source, cypher] ---- -WITH datetime.fromepoch(1683000000, 123456789) AS dateTimeFromEpoch +WITH datetime.fromEpoch(1683000000, 123456789) AS dateTimeFromEpoch RETURN dateTimeFromEpoch ---- +// end::functions_temporal_datetime_fromepoch .Result [role="queryresult",options="header,footer",cols="1* Date: Thu, 27 Mar 2025 13:10:50 +0100 Subject: [PATCH 2/3] second --- .../ROOT/pages/functions/temporal/index.adoc | 51 +++++++++++-------- 1 file changed, 29 insertions(+), 22 deletions(-) diff --git a/modules/ROOT/pages/functions/temporal/index.adoc b/modules/ROOT/pages/functions/temporal/index.adoc index aecca4477..5a5af6617 100644 --- a/modules/ROOT/pages/functions/temporal/index.adoc +++ b/modules/ROOT/pages/functions/temporal/index.adoc @@ -482,7 +482,6 @@ RETURN theDate ====== .Query -// tag::functions_temporal_date_transaction[] [source, cypher] ---- UNWIND [ @@ -492,7 +491,6 @@ date({year: 1984}) ] AS theDate RETURN theDate ---- -// end::functions_temporal_date_transaction[] .Result [role="queryresult",options="header,footer",cols="1* Date: Tue, 22 Apr 2025 14:43:00 +0200 Subject: [PATCH 3/3] all --- modules/ROOT/pages/functions/temporal/index.adoc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/modules/ROOT/pages/functions/temporal/index.adoc b/modules/ROOT/pages/functions/temporal/index.adoc index 5a5af6617..c3988b289 100644 --- a/modules/ROOT/pages/functions/temporal/index.adoc +++ b/modules/ROOT/pages/functions/temporal/index.adoc @@ -1562,6 +1562,7 @@ For example, `day` -- with some value `x` -- may be provided when the truncation ====== .Query +// tag::functions_temporal_datetime_truncate[] [source, cypher] ---- WITH @@ -1578,6 +1579,7 @@ RETURN datetime.truncate('hour', d) AS truncHour, datetime.truncate('second', d) AS truncSecond ---- +// end::functions_temporal_datetime_truncate[] .Result [role="queryresult",options="header,footer",cols="6*