subtracting two days from current date in epoch milliseconds java [duplicate]
问题 This question already has answers here : Java - Subtract Days from date [duplicate] (6 answers) Closed 4 years ago . I am trying to do something really simple. I am trying to subtract 2 days from the current day. I get the number of hours from the UI. So in this example, I get 48 hours from the UI. I am doing the following and I don't know what i'm doing wrong here. I think the result of this is it only subtracts a few minutes from the time. long timeInEpoch = (currentMillis()/1000 - (48 * 60