mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-04 08:51:02 +07:00
23 lines
878 B
HTML
23 lines
878 B
HTML
<!-- Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. -->
|
|
<html>
|
|
<body>
|
|
Reports incorrect date time format patterns.
|
|
<p>The following errors are reported:</p>
|
|
<ul>
|
|
<li>Unsupported pattern letters, like "TT"</li>
|
|
<li>Using reserved characters, like "#"</li>
|
|
<li>Incorrect use of padding</li>
|
|
<li>Unbalanced brackets</li>
|
|
<li>Incorrect amount of consecutive pattern letters</li>
|
|
</ul>
|
|
<p>Examples:</p>
|
|
<pre><code>
|
|
DateTimeFormatter.ofPattern("[][]]"); // Closing ']' without previous opening '['
|
|
DateTimeFormatter.ofPattern("TT"); // Illegal pattern letter 'T'
|
|
DateTimeFormatter.ofPattern("{"); // Use of reserved character '{'
|
|
DateTimeFormatter.ofPattern("MMMMMM"); // Too many consecutive pattern letters 'M'
|
|
</code></pre>
|
|
<!-- tooltip end -->
|
|
<p><small>New in 2022.3</small>
|
|
</body>
|
|
</html> |