Skip to content

Commit eda89a5

Browse files
committed
added cheat sheet tags
1 parent 2d9bea5 commit eda89a5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,13 @@ Use the characters in xref:#query-functions-temporal-format-instance-types-chara
4646
======
4747
4848
.Query
49+
// tag::functions_format_instance_type[]
4950
[source, cypher, indent=0]
5051
----
5152
WITH datetime('1986-11-18T6:04:45.123456789+01:00[Europe/Berlin]') AS dt
5253
RETURN format(dt, "MM/dd/yyyy") AS US, format(dt, "dd/MM/yyyy") AS EU
5354
----
55+
// end::functions_format_instance_type[]
5456
5557
.Result
5658
[role="queryresult",options="header,footer",cols="2*<m"]
@@ -248,12 +250,13 @@ This is because without a reference point, there is no way to determine the spec
248250
======
249251
250252
.Query
253+
// tag::functions_format_duration_type[]
251254
[source, cypher, indent=0]
252255
----
253256
WITH duration({years: 1, months: 4}) AS d
254257
RETURN format(d, "y 'years' q 'quarters' M 'months'") AS withYears, format(d, "q 'quarters' M 'months'") AS withoutYears
255-
256258
----
259+
// end::functions_format_duration_type[]
257260
258261
.Result
259262
[role="queryresult",options="header,footer",cols="2*<m"]

0 commit comments

Comments
 (0)