org.apache.commons.lang3.time.DurationFormatUtils.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jelly Show documentation
Show all versions of jelly Show documentation
Java Functional Metaprogramming API
The newest version!
???? 2C
3 ? ?
\ ? ?
\ ???????? ?
? ?
\ ? \ ?
K ? &\ \ ? 6? \ ? ?` \ ? ?
\ ? ? ?
? ?
?
? ? ?
? ?
? ? ? ? ?
? ? ? ? ? ? ? ? ? ?
? ?
? ?
\ ? ? ?
? ?
? ? ?
6 ?
? ?
? ? \ ?
? ?
? ? \ ? ?
K ?
K ?
3 ?
\ ? \ ?
? ?
? ?
? ? ?
G
?
K
G
K
O
G
G } b d e f g h i Token InnerClasses ISO_EXTENDED_FORMAT_PATTERN Ljava/lang/String;
ConstantValue y Ljava/lang/Object; M d H m s S ()V Code LineNumberTable LocalVariableTable this 3Lorg/apache/commons/lang3/time/DurationFormatUtils; formatDurationHMS (J)Ljava/lang/String; durationMillis J formatDurationISO formatDuration '(JLjava/lang/String;)Ljava/lang/String; format ((JLjava/lang/String;Z)Ljava/lang/String; padWithZeros Z tokens :[Lorg/apache/commons/lang3/time/DurationFormatUtils$Token; days hours minutes seconds milliseconds
StackMapTable
formatDurationWords (JZZ)Ljava/lang/String; tmp suppressLeadingZeroElements suppressTrailingZeroElements duration formatPeriodISO (JJ)Ljava/lang/String; startMillis endMillis formatPeriod ((JJLjava/lang/String;)Ljava/lang/String; =(JJLjava/lang/String;ZLjava/util/TimeZone;)Ljava/lang/String; target I timezone Ljava/util/TimeZone; start Ljava/util/Calendar; end months years V([Lorg/apache/commons/lang3/time/DurationFormatUtils$Token;JJJJJJJZ)Ljava/lang/String; width value count token 9Lorg/apache/commons/lang3/time/DurationFormatUtils$Token; arr$ len$ i$ buffer Ljava/lang/StringBuilder; lastOutputSeconds ? ? paddedValue (JZI)Ljava/lang/String;
longString lexx N(Ljava/lang/String;)[Lorg/apache/commons/lang3/time/DurationFormatUtils$Token; ch C i list Ljava/util/ArrayList; inLiteral previous LocalVariableTypeTable PLjava/util/ArrayList; ?
SourceFile DurationFormatUtils.java j k HH:mm:ss.SSS v w #'P'yyyy'Y'M'M'd'DT'H'H'm'M's.SSS'S' v y #durationMillis must not be negative ? ? e c f c g c h c x ? *d' days 'H' hours 'm' minutes 's' seconds' java/lang/StringBuilder 0 days
0 hours
0 minutes
0 seconds
1 seconds 1 second
1 minutes 1 minute 1 hours 1 hour 1 days 1 day !" ? ? .startMillis must not be greater than endMillis java/lang/Object#$%& java/util/Date j'()*+ d c,+-. b c java/util/GregorianCalendar/01 ? ? i c2345 r67 java/util/ArrayList j89:; 7org/apache/commons/lang3/time/DurationFormatUtils$Token j<-=> k "java/lang/IllegalArgumentException Unmatched quote in format: j?@AB 1org/apache/commons/lang3/time/DurationFormatUtils java/lang/String java/util/TimeZone java/util/Calendar !org/apache/commons/lang3/Validate inclusiveBetween (JJJLjava/lang/String;)V containsTokenWithValue O([Lorg/apache/commons/lang3/time/DurationFormatUtils$Token;Ljava/lang/Object;)Z append -(Ljava/lang/String;)Ljava/lang/StringBuilder; toString ()Ljava/lang/String; $org/apache/commons/lang3/StringUtils replaceOnce J(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; length ()I substring (I)Ljava/lang/String; trim
getDefault ()Ljava/util/TimeZone; isTrue )(ZLjava/lang/String;[Ljava/lang/Object;)V getInstance *(Ljava/util/TimeZone;)Ljava/util/Calendar; (J)V setTime (Ljava/util/Date;)V get (I)I getActualMaximum add (II)V getValue ()Ljava/lang/Object; getCount java/lang/Math max (II)I java/lang/Long leftPad ((Ljava/lang/String;IC)Ljava/lang/String; (I)V charAt (I)C (C)Ljava/lang/StringBuilder; (Ljava/lang/Object;)V (Ljava/lang/Object;)Z increment (Ljava/lang/String;)V size toArray (([Ljava/lang/Object;)[Ljava/lang/Object; ! \ 3 _ ` a b c d c e c f c g c h c i c
j k l 3 *? ? m
<