How can I compare Calendar
in Java? I want check if now_2
is newer then now_1
like this:
Calendar now_1 = Calendar.getInstance();
sleep(10000); //sleep for 10 second
Calendar now_2 = Calendar.getInstance();
if(now_2.isNewer(now_1)){
//BIG FAIL
}