title: How to round off timestamp in milliseconds to nearest seconds?
body: <p>How to round off the current timestamp in milliseconds to seconds?</p>
  
  <p>If this is the current timestamp in milliseconds I have - </p>
  
  <pre><code>1384393612958
  </code></pre>
  
  <p>The if I am rounding off to nearest second then will it be like this?</p>
  
  <pre><code>Time in MS rounded off to nearest Second = 1384393612000
  </code></pre>
  
  <p>I might need to do this both in Java and C++.</p>