LANG-1005: Extend DurationFormatUtils#formatDurationISO default pattern to match #formatDurationHMS. Thanks to Michael Osipov.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1592592 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d910918faf
commit
7d6e0beccb
|
@ -22,6 +22,7 @@
|
|||
<body>
|
||||
|
||||
<release version="3.4" date="tba" description="tba">
|
||||
<action issue="LANG-1005" type="update" dev="britter" due-to="Michael Osipov">Extend DurationFormatUtils#formatDurationISO default pattern to match #formatDurationHMS</action>
|
||||
<action issue="LANG-1007" type="update" dev="britter" due-to="Thiago Andrade">Fixing NumberUtils JAVADoc comments for max methods</action>
|
||||
<action issue="LANG-731" type="update" dev="djones">Better Javadoc for BitField class</action>
|
||||
<action issue="LANG-1004" type="update" dev="britter" due-to="Michael Osipov">DurationFormatUtils#formatDurationHMS implementation does not correspond to Javadoc and vice versa</action>
|
||||
|
|
|
@ -66,7 +66,7 @@ public class DurationFormatUtils {
|
|||
* @see org.apache.commons.lang3.time.FastDateFormat
|
||||
* @see java.text.SimpleDateFormat
|
||||
*/
|
||||
public static final String ISO_EXTENDED_FORMAT_PATTERN = "'P'yyyy'Y'M'M'd'DT'H'H'm'M's.S'S'";
|
||||
public static final String ISO_EXTENDED_FORMAT_PATTERN = "'P'yyyy'Y'M'M'd'DT'H'H'm'M's.SSS'S'";
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
/**
|
||||
|
|
|
@ -390,7 +390,7 @@ public class DurationFormatUtilsTest {
|
|||
new DurationFormatUtils.Token(new StringBuilder("M"), 1),
|
||||
new DurationFormatUtils.Token(DurationFormatUtils.s, 1),
|
||||
new DurationFormatUtils.Token(new StringBuilder("."), 1),
|
||||
new DurationFormatUtils.Token(DurationFormatUtils.S, 1),
|
||||
new DurationFormatUtils.Token(DurationFormatUtils.S, 3),
|
||||
new DurationFormatUtils.Token(new StringBuilder("S"), 1)}, DurationFormatUtils
|
||||
.lexx(DurationFormatUtils.ISO_EXTENDED_FORMAT_PATTERN));
|
||||
|
||||
|
|
Loading…
Reference in New Issue