title: Javascript - Convert Time to Integer and Integer to Time
body: <p>This is what I do in Ruby. </p>
  
  <pre><code>time = Time.now
  =&gt; 2013-10-08 12:32:50 +0530
  time.to_i //converts time to integer
  =&gt; 1381215770
  Time.at(time.to_i) //converts integer to time
  =&gt; 2013-10-08 12:32:50 +0530
  </code></pre>
  
  <p>I'm trying to implement the same with Node.js, but not sure how to do it. Kindly help me in finding a module for implementing the same with Node.js, Javascript. Thanks!</p>