Author: bayard Date: Tue Dec 19 15:59:51 2006 New Revision: 488858 URL: http://svn.apache.org/viewvc?view=rev&rev=488858 Log: Updated comment
Modified: jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/time/DurationFormatUtils.java Modified: jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/time/DurationFormatUtils.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/time/DurationFormatUtils.java?view=diff&rev=488858&r1=488857&r2=488858 ============================================================================== --- jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/time/DurationFormatUtils.java (original) +++ jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/time/DurationFormatUtils.java Tue Dec 19 15:59:51 2006 @@ -318,11 +318,10 @@ int leapDays = 0; if (days < 0) { days += start.getActualMaximum(Calendar.DAY_OF_MONTH); - // It's a tricky subject. Jan 15th to March 10th. If I count days-first it is + // Multiple answers possible. + // For example, for Jan 15th to March 10th. If I count days-first it is // 1 month and 26 days, but if I count month-first then it is 1 month and 23 days. // Here we choose the former. - // Also it's contextual - if asked for no M in the format then I should probably - // be doing no calculating here. months -= 1; start.add(Calendar.MONTH, 1); } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]