Skip to content

Commit 7b99147

Browse files
committed
review suggestions
1 parent 93e85bc commit 7b99147

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@
99

1010
The format function creates dynamically formatted string representations of temporal instance and duration types.
1111
The output format can be customized via the `pattern` parameter.
12-
Creating a pattern follows the rules for the link:https://docs.oracle.com/javase/8/docs/api/java/time/format/DateTimeFormatter.html[Java DateTimeFormatter].
12+
Creating a pattern follows the rules for the link:https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/time/format/DateTimeFormatter.html[Java DateTimeFormatter].
1313
If no pattern is specified, the function returns an ISO-formatted string.
1414

1515
.Details
1616
|===
1717
| *Syntax* 3+| `format(value[, pattern])`
18-
| *Description* 3+| Returns the temporal value as an ISO-formatted string or as a string formatted by the provided pattern.
18+
| *Description* 3+| Returns the temporal value as an ISO-formatted `STRING` or as a `STRING` formatted by the provided pattern.
1919
.3+| *Arguments* | *Name* | *Type* | *Description*
2020
| `value` | `DATE \| LOCAL TIME \| ZONED TIME \| LOCAL DATETIME \| ZONED DATETIME \| DURATION` | A temporal value to be formatted.
2121
| `pattern` | `STRING` | A pattern used to format the temporal value. If the pattern is not provided the value will be formatted according to ISO 8601.
@@ -222,7 +222,7 @@ The three occurrences of `p` add one space character of padding to the two digit
222222
|===
223223
| Most characters yield a different output when they are repeated.
224224
| 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.
225-
| For details, refer to the documentation of the link:https://docs.oracle.com/javase/8/docs/api/java/time/format/DateTimeFormatter.html[Java DateTimeFormatter].
225+
| 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].
226226
| 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.
227227
|===
228228

0 commit comments

Comments
 (0)