diff --git a/src/changes/changes.xml b/src/changes/changes.xml index f2594a0de..4e7b48b04 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -22,6 +22,7 @@
Pattern used with FastDateFormat
and SimpleDateFormat
- * for the ISO8601 period format used in durations.
Formats the time gap as a string.
* - *The format used is ISO8601-like: + *
The format used is ISO 8601-like: * H:m:s.S.
* * @param durationMillis the duration to format @@ -85,7 +85,7 @@ public static String formatDurationHMS(final long durationMillis) { /** *Formats the time gap as a string.
* - *The format used is the ISO8601 period format.
+ *The format used is the ISO 8601 period format.
* *This method formats durations using the days and lower fields of the * ISO format pattern, such as P7D6TH5M4.321S.
@@ -221,7 +221,7 @@ public static String formatDurationWords( /** *Formats the time gap as a string.
* - *The format used is the ISO8601 period format.
+ *The format used is the ISO 8601 period format.
* * @param startMillis the start of the duration to format * @param endMillis the end of the duration to format diff --git a/src/main/java/org/apache/commons/lang3/time/FastDateFormat.java b/src/main/java/org/apache/commons/lang3/time/FastDateFormat.java index bc88b20e1..7f1722059 100644 --- a/src/main/java/org/apache/commons/lang3/time/FastDateFormat.java +++ b/src/main/java/org/apache/commons/lang3/time/FastDateFormat.java @@ -57,7 +57,7 @@ * This pattern letter can be used here (on all JDK versions). * *In addition, the pattern {@code 'ZZ'} has been made to represent - * ISO8601 full format time zones (eg. {@code +08:00} or {@code -11:00}). + * ISO 8601 full format time zones (eg. {@code +08:00} or {@code -11:00}). * This introduces a minor incompatibility with Java 1.4, but at a gain of * useful functionality.
* diff --git a/src/main/java/org/apache/commons/lang3/time/FastDatePrinter.java b/src/main/java/org/apache/commons/lang3/time/FastDatePrinter.java index cea70c465..2f2bafd9e 100644 --- a/src/main/java/org/apache/commons/lang3/time/FastDatePrinter.java +++ b/src/main/java/org/apache/commons/lang3/time/FastDatePrinter.java @@ -61,7 +61,7 @@ * This pattern letter can be used here (on all JDK versions). * *In addition, the pattern {@code 'ZZ'} has been made to represent - * ISO8601 full format time zones (eg. {@code +08:00} or {@code -11:00}). + * ISO 8601 full format time zones (eg. {@code +08:00} or {@code -11:00}). * This introduces a minor incompatibility with Java 1.4, but at a gain of * useful functionality.
* diff --git a/src/main/java/org/apache/commons/lang3/time/StopWatch.java b/src/main/java/org/apache/commons/lang3/time/StopWatch.java index 5d90ccf04..953479344 100644 --- a/src/main/java/org/apache/commons/lang3/time/StopWatch.java +++ b/src/main/java/org/apache/commons/lang3/time/StopWatch.java @@ -407,7 +407,7 @@ public long getStartTime() { * * *- * The format used is ISO8601-like, hours:minutes:seconds.milliseconds. + * The format used is ISO 8601-like, hours:minutes:seconds.milliseconds. *
* * @return the time as a String @@ -423,7 +423,7 @@ public String toString() { * * *- * The format used is ISO8601-like, hours:minutes:seconds.milliseconds. + * The format used is ISO 8601-like, hours:minutes:seconds.milliseconds. *
* * @return the split time as a String diff --git a/src/test/java/org/apache/commons/lang3/time/DurationFormatUtilsTest.java b/src/test/java/org/apache/commons/lang3/time/DurationFormatUtilsTest.java index 443c9dc28..95537108b 100644 --- a/src/test/java/org/apache/commons/lang3/time/DurationFormatUtilsTest.java +++ b/src/test/java/org/apache/commons/lang3/time/DurationFormatUtilsTest.java @@ -351,7 +351,7 @@ public void testLexx() { new DurationFormatUtils.Token(DurationFormatUtils.s, 1), new DurationFormatUtils.Token(DurationFormatUtils.S, 1)}, DurationFormatUtils.lexx("yMdHmsS")); - // tests the ISO8601-like + // tests the ISO 8601-like assertArrayEquals(new DurationFormatUtils.Token[]{ new DurationFormatUtils.Token(DurationFormatUtils.H, 1), new DurationFormatUtils.Token(new StringBuilder(":"), 1),