Date newDate = convertToDate(value);
return date.getTime() - newDate.getTime();
}
public static long compare(Time time, String value) {
Time newTime = new Time(value);
return time.getAsCalendar().getTimeInMillis() - newTime.getAsCalendar().getTimeInMillis();
}