public int [ ] calculateInYearsMonthsDaysHoursMinutesAndSeconds ( final long compute ) { long uebrig = - 1 ; final int [ ] result = new int [ 6 ] ; final int years = ( int ) this . calculateInYears ( compute ) ; if ( 0 < years ) { result [ 0 ] = years ; uebrig = compute - years * ONE_YEAR ; } else { result [ 0 ] = 0 ; } final int months = ( int ) this . calculateInDefaultMonth ( uebrig ) ; if ( 0 < months ) { result [ 1 ] = months ; uebrig -= months * ONE_DEFAULT_MONTH ; } else { result [ 1 ] = 0 ; } final int days = ( int ) this . calculateInDays ( uebrig ) ; if ( 0 < days ) { result [ 2 ] = days ; uebrig -= days * ONE_DAY ; } else { result [ 2 ] = 0 ; } final int hours = ( int ) this . calculateInHours ( uebrig ) ; if ( 0 < hours ) { result [ 3 ] = hours ; uebrig -= hours * ONE_HOUR ; } else { result [ 3 ] = 0 ; } final int minutes = ( int ) this . calculateInMinutes ( uebrig ) ; if ( 0 < minutes ) { result [ 4 ] = minutes ; uebrig -= minutes * ONE_MINUTE ; } else { result [ 4 ] = 0 ; } final int seconds = ( int ) this . calculateInSeconds ( uebrig ) ; if ( 0 < seconds ) { result [ 5 ] = seconds ; } else { result [ 5 ] = 0 ; } return result ; }
Calculate in years months days hours minutes and seconds .