I must compare 2 hours one that is already registered from the database and the current time, I have been told that I can use the timestamp in MySQL make me return a true or false and minutes difference, then in java I should receive what returns and according to what it is to perform an action. Could someone give me an example of this? Thank you very much.