static String formatDebugTime(long unixTime,long now){
  Time time=new Time();
  time.set(unixTime);
  long delta=unixTime - now;
  if (delta > DateUtils.MINUTE_IN_MILLIS) {
    delta/=DateUtils.MINUTE_IN_MILLIS;
    return String.format("[%d] %s (%+d mins)",unixTime,time.format("%H:%M:%S"),delta);
  }
 else {
    delta/=DateUtils.SECOND_IN_MILLIS;
    return String.format("[%d] %s (%+d secs)",unixTime,time.format("%H:%M:%S"),delta);
  }
}

static String formatDebugTime ( long unixTime , long now ) { Time time = new Time ( ) ; time . set ( unixTime ) ; long delta = unixTime - now ; if ( delta > DateUtils . MINUTE_IN_MILLIS ) { delta /= DateUtils . MINUTE_IN_MILLIS ; return String . format ( "[%d] %s (%+d mins)" , unixTime , time . format ( "%H:%M:%S" ) , delta ) ; } else { delta /= DateUtils . SECOND_IN_MILLIS ; return String . format ( "[%d] %s (%+d secs)" , unixTime , time . format ( "%H:%M:%S" ) , delta ) ; } }
format given time for debugging output .
