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/functions/temporal/format.adoc
+16-16Lines changed: 16 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,9 +8,6 @@
8
8
== format()
9
9
10
10
The `format()` function creates dynamically formatted string representations of temporal instance and duration types.
11
-
The output format can be customized via the `pattern` parameter.
12
-
The `pattern` parameter follows the link:https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/time/format/DateTimeFormatter.html[Java DateTimeFormatter].
13
-
If no pattern is specified, the function returns an ISO-formatted string.
14
11
15
12
.Details
16
13
|===
@@ -22,6 +19,16 @@ If no pattern is specified, the function returns an ISO-formatted string.
22
19
| *Returns* 3+| `STRING`
23
20
|===
24
21
22
+
.Considerations
23
+
|===
24
+
| The output format can be customized via the `pattern` parameter.
25
+
| The `pattern` parameter follows the link:https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/time/format/DateTimeFormatter.html[Java DateTimeFormatter].
26
+
| If no pattern is specified, the function returns an ISO-formatted string.
27
+
| Most characters yield a different output when they are repeated.
28
+
| Some characters cannot be applied to certain types, for instance, `u` cannot be used to construct a string for a `LOCAL TIME` because it represents a year which is not part of the temporal value.
29
+
| Any character that is not reserved, other than `[`, `]`, `{`, `}`, `#`, and `'`, are output directly. To ensure future compatibility it is recommended to wrap all characters that you want to output directly with single quotes.
@@ -219,14 +226,6 @@ The three occurrences of `p` add one space character of padding to the two digit
219
226
| `'` | single quote | literal |
220
227
|===
221
228
222
-
.Considerations
223
-
|===
224
-
| Most characters yield a different output when they are repeated.
225
-
| Some characters cannot be applied to certain types, for instance, `u` cannot be used to construct a string for a `LOCAL TIME` because it represents a year which is not part of the temporal value.
226
-
| For details, refer to the documentation of the link:https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/time/format/DateTimeFormatter.html[Java DateTimeFormatter].
227
-
| Any character that is not reserved, other than `[`, `]`, `{`, `}`, `#`, and `'`, are output directly. To ensure future compatibility it is recommended to wrap all characters that you want to output directly with single quotes.
0 commit comments