private Calendar asCalendar(Calendar base,Time time){
  Calendar timeCalendar=Calendar.getInstance();
  timeCalendar.setTime(time);
  base.set(Calendar.HOUR_OF_DAY,timeCalendar.get(Calendar.HOUR_OF_DAY));
  base.set(Calendar.MINUTE,timeCalendar.get(Calendar.MINUTE));
  base.set(Calendar.SECOND,timeCalendar.get(Calendar.SECOND));
  base.set(Calendar.MILLISECOND,timeCalendar.get(Calendar.MILLISECOND));
  return base;
}

private Calendar asCalendar ( Calendar base , Time time ) { Calendar timeCalendar = Calendar . getInstance ( ) ; timeCalendar . setTime ( time ) ; base . set ( Calendar . HOUR_OF_DAY , timeCalendar . get ( Calendar . HOUR_OF_DAY ) ) ; base . set ( Calendar . MINUTE , timeCalendar . get ( Calendar . MINUTE ) ) ; base . set ( Calendar . SECOND , timeCalendar . get ( Calendar . SECOND ) ) ; base . set ( Calendar . MILLISECOND , timeCalendar . get ( Calendar . MILLISECOND ) ) ; return base ; }
converts a sql time to a calendar , independently of time zone , using the given calendar as a base . the time components will be copied to the given calendar verbatim , leaving the date and time zone components of the given calendar otherwise intact .
