title: How do I get the milliseconds from epoc till starting of today's?
body: <p>I am trying to get the today's time in millisecond for the start of the day.I have created a method for it but it's returning me the wrong result:</p>
  
  <pre><code>private void getCurrentMillisecondsTime() {
          // get calendar instance, substitute timezone for which ever you need or
          // leave blank to use current
          Calendar updateTime = Calendar.getInstance();
          updateTime.set(Calendar.HOUR_OF_DAY, 0); // set hour
          updateTime.set(Calendar.MINUTE, 0); // set minute
          updateTime.set(Calendar.SECOND, 0); // set seconds
  
          long time = updateTime.getTimeInMillis(); // get milliseconds
          System.out.println(updateTime.getTime());
          System.out.println(time);
      }
  </code></pre>
  
  <p><strong>The output of above code is :</strong></p>
  
  <pre><code>I/System.out(30191): Mon Jun 30 00:00:00 GMT+06:00 2014
  I/System.out(30191): 1404064800894
  </code></pre>
  
  <p><strong>But I want it to be :</strong></p>
  
  <pre><code>1404066600000
  </code></pre>
  
  <p>I think its the problem of timezone which I don't know how to fix.</p>