Files
openide/java/java-impl/resources/inspectionDescriptions/IncorrectDateTimeFormat.html
Leonid Shalupov 40795fe787 IJI-2422: community/java: move resources under resources root
GitOrigin-RevId: 8b2b63fc6db476ca0c2cfe5cadd84db6c4236d0f
2025-02-05 04:43:28 +00:00

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>