public static String getDuration( long ms1, long ms2 ) { return getDuration( new Date( ms1 ), new Date( ms2 ) ); }
public static String getDuration( long duration ) { return getDuration( new Date( 0 ), new Date( duration ) ); }
public static String getDuration( long ms1, long ms2 ) { return getDuration( new Date( ms1 ), new Date( ms2 ) ); }
public static String getDuration( long duration ) { return getDuration( new Date( 0 ), new Date( duration ) ); }
public static String getDuration( Date d1, Date d2 ) { Calendar cal1 = new GregorianCalendar(); cal1.setTime( d1 ); Calendar cal2 = new GregorianCalendar(); cal2.setTime( d2 ); return getDuration( cal1, cal2 ); }
public static String getDuration( Date d1, Date d2 ) { Calendar cal1 = new GregorianCalendar(); cal1.setTime( d1 ); Calendar cal2 = new GregorianCalendar(); cal2.setTime( d2 ); return getDuration( cal1, cal2 ); }
buf.append( org.apache.archiva.common.utils.DateUtil.getDuration( this.getDuration() ) ); buf.append( "\n When Gathered : " ); if ( this.getWhenGathered() == null ) buf.append( org.apache.archiva.common.utils.DateUtil.getDuration( averageMsPerFile ) ); buf.append( "\n______________________________________________________________" );
buf.append( org.apache.archiva.common.utils.DateUtil.getDuration( this.getDuration() ) ); buf.append( "\n When Gathered : " ); if ( this.getWhenGathered() == null ) buf.append( org.apache.archiva.common.utils.DateUtil.getDuration( averageMsPerFile ) ); buf.append( "\n______________________________________________________________" );