Теперь у меня есть два значения времени, например:
Код: Выделить всё
Date previous_time=20:50:55
Date current_time=19:50:55
Код: Выделить всё
if(previous_time.after(current_date)){
Log.i("Time Comparision","before is true");
System.out.println("before");
}
else if(current_time.after(previous_time)){
Log.i("Time Comparision","after is true");
System.out.println("after");
}
else {
System.out.println("nothing");
Log.i("Time Comparision not happened","");
}
Мой вопрос: как сравнить два раза, когда они находятся в вышеупомянутом формате?
Подробнее здесь: https://stackoverflow.com/questions/595 ... me-in-java
Мобильная версия