title: subtracting two days from current date in epoch milliseconds java
body: <p>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. </p>
  
  <pre><code>long timeInEpoch = (currentMillis()/1000 - (48 * 60 * 60)); //48 comes from UI
  
  public long currentMillis(){
      return new Date().getTime();
  }
  
  d = new Date(timeInEpoch * 1000);
  </code></pre>
  
  <p>I also tried </p>
  
  <pre><code>d1 = new Date(timeInEpoch);
  </code></pre>
  
  <p>Nothing seems to work. What am I doing wrong here?</p>