I have the opportunity to implement the bidding system in the project and on the server, in the auction table, I have a field for the start and end times.
What I do is that when the user searches, of course, he sees only the item whose auction is still open
When a user clicks on an item, he is bought on a page where he can bid. There I get the interval between the start time and the end time, and then I start to reduce the time.
is there any existing code that can be used to reduce the time, the format of which is in
hh: mm: ss in java
??
Edit: There was an error in the quest, time to reduce the time between the end time and the current time
source share