In my code I have a date and a calendar object and I want to compare just the time portion. I'm thinking of doing something like this
public myfunc(Calendar cal1, Date date1)
Calendar cal2 = (Calendar)cal1.clone();
<more code here...>
But I'm having trouble with the setTime() function since it also assigns the date info as well. So I need a setTime() that will only set the time.