commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pste...@apache.org
Subject cvs commit: jakarta-commons/lang/src/java/org/apache/commons/lang/time DurationFormatUtils.java
Date Sat, 20 Dec 2003 22:19:21 GMT
psteitz     2003/12/20 14:19:21

  Modified:    lang/src/java/org/apache/commons/lang/time
                        DurationFormatUtils.java
  Log:
  javadoc, spelling error.
  
  Revision  Changes    Path
  1.7       +10 -18    jakarta-commons/lang/src/java/org/apache/commons/lang/time/DurationFormatUtils.java
  
  Index: DurationFormatUtils.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/time/DurationFormatUtils.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- DurationFormatUtils.java	7 Sep 2003 14:32:35 -0000	1.6
  +++ DurationFormatUtils.java	20 Dec 2003 22:19:21 -0000	1.7
  @@ -81,7 +81,7 @@
        * with XML Schema durations particularly in mind.</p>
        * 
        * <p>This format represents the Gregorian year, month, day, hour, minute, and
second components defined 
  -     * in  5.5.3.2 of ISO 8601, respectively. These components are ordered in their significance
by their order 
  +     * in section 5.5.3.2 of ISO 8601, respectively. These components are ordered in their
significance by their order 
        * of appearance i.e. as year, month, day, hour, minute, and second.</p>
        * 
        * <p>The ISO8601 extended format P<i>n</i>Y<i>n</i>M<i>n</i>DT<i>n</i>H<i>n</i>M<i>n</i>S,
where <i>n</i>Y 
  @@ -133,25 +133,17 @@
       }
   
       /**
  -     * <p>Format an elapsed time into a plurialization correct string.
  -     * It is limited only to report elapsed time in minutes and
  -     * seconds and has the following behavior.</p>
  -     *
  -     * <ul>
  -     *  <li>minutes are not displayed when <code>0</code> (ie:
  -     *   &quot;45 seconds&quot;)</li>.
  -     *  <li>seconds are always displayed in plural form (ie
  -     *   &quot;0 seconds&quot; or &quot;10 seconds&quot;) except
  -     *   for <code>1</code> (ie &quot;1 second&quot;)</li>
  -     *  </ul>
  +     * <p>Format an elapsed time into a plurialization correct string.</p>
        * 
        * @param millis  the elapsed time to report in milliseconds
  -     * @return the formatted text in minutes/seconds
  +     * @param suppressLeadingZeroElements suppresses leading 0 elements
  +     * @param suppressTrailingZeroElements suppresses trailing 0 elements
  +     * @return the formatted text in days/hours/minutes/seconds
        */
       public static String formatWords(
           long millis,
  -        boolean supressLeadingZeroElements,
  -        boolean supressTrailingZeroElements) {
  +        boolean suppressLeadingZeroElements,
  +        boolean suppressTrailingZeroElements) {
           long[] values = new long[4];
           values[0] = millis / DateUtils.MILLIS_IN_DAY;
           values[1] = (millis / DateUtils.MILLIS_IN_HOUR) % 24;
  @@ -168,11 +160,11 @@
               if (value == 0) {
                   // handle zero
                   if (valueOutput) {
  -                    if (supressTrailingZeroElements == false) {
  +                    if (suppressTrailingZeroElements == false) {
                           buf.append('0').append(fieldsPlural[i]);
                       }
                   } else {
  -                    if (supressLeadingZeroElements == false) {
  +                    if (suppressLeadingZeroElements == false) {
                           buf.append('0').append(fieldsPlural[i]);
                       }
                   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message