public static ValueTime convertTime(Time x,Calendar calendar){
  if (calendar == null) {
    throw DbException.getInvalidValueException("calendar",null);
  }
  Calendar cal=(Calendar)calendar.clone();
  cal.setTimeInMillis(x.getTime());
  long nanos=nanosFromCalendar(cal);
  return ValueTime.fromNanos(nanos);
}

public static ValueTime convertTime ( Time x , Calendar calendar ) { if ( calendar == null ) { throw DbException . getInvalidValueException ( "calendar" , null ) ; } Calendar cal = ( Calendar ) calendar . clone ( ) ; cal . setTimeInMillis ( x . getTime ( ) ) ; long nanos = nanosFromCalendar ( cal ) ; return ValueTime . fromNanos ( nanos ) ; }
convert the time using the specified calendar .
