< prev index next >

src/java.base/share/classes/java/time/format/DateTimeFormatter.java

Print this page

        

@@ -394,20 +394,19 @@
  * second, with a colon, such as '+01:30:15'. Six or more letters throws
  * {@code IllegalArgumentException}. Pattern letter 'X' (upper case) will output
  * 'Z' when the offset to be output would be zero, whereas pattern letter 'x'
  * (lower case) will output '+00', '+0000', or '+00:00'.
  * <p>
- * <b>Offset O</b>: With a non-zero offset, this formats the localized offset
- * based on the number of pattern letters. One letter outputs the
- * {@linkplain TextStyle#SHORT short} form of the localized offset, which is
- * localized offset text, such as 'GMT', with hour without leading zero, optional
- * 2-digit minute and second if non-zero, and colon, for example 'GMT+8'. Four
- * letters outputs the {@linkplain TextStyle#FULL full} form, which is localized
- * offset text, such as 'GMT, with 2-digit hour and minute field, optional second
- * field if non-zero, and colon, for example 'GMT+08:00'. If the offset is zero,
- * only localized text is output. Any other count of letters throws
- * {@code IllegalArgumentException}.
+ * <b>Offset O</b>: This formats the localized offset based on the number of
+ * pattern letters. One letter outputs the {@linkplain TextStyle#SHORT short}
+ * form of the localized offset, which is localized offset text, such as 'GMT',
+ * with hour without leading zero, optional 2-digit minute and second if
+ * non-zero, and colon, for example 'GMT+8'. Four letters outputs the
+ * {@linkplain TextStyle#FULL full} form, which is localized offset text,
+ * such as 'GMT, with 2-digit hour and minute field, optional second field
+ * if non-zero, and colon, for example 'GMT+08:00'. Any other count of letters
+ * throws {@code IllegalArgumentException}.
  * <p>
  * <b>Offset Z</b>: This formats the offset based on the number of pattern
  * letters. One, two or three letters outputs the hour and minute, without a
  * colon, such as '+0130'. The output will be '+0000' when the offset is zero.
  * Four letters outputs the {@linkplain TextStyle#FULL full} form of localized
< prev index next >