I have two times. one for the previous login time and one for the current login time. I have to increase the login time by one hour. I used the date format hh: mm: ss. This is my piece of code.
Date previous_time, current_time; if(previous_time.before(current_time)){ Log.i("Time Comparision"," true"); }
therefore, instead of the above if condition, I have to add one hour to the previous_time and fulfill the if condition. How to achieve this?
Andro selva
source share