title: Is possible to represent Date time in float format?
body: <p>Basically I am working with two languages, one is ruby and the other is javascript.
  In ruby you can do something like:</p>
  
  <pre><code>date.to_f 
  </code></pre>
  
  <p>--> and gives you the float representation of the date, like this:</p>
  
  <p>1541393269.3742561</p>
  
  <p>But when you say in javascript:</p>
  
  <pre><code>Date.now()
  </code></pre>
  
  <p>1542377024455</p>
  
  <p>I also tried with moment js, but still not entirely sure of how to reflect this float representation of time.</p>
  
  <p>Is there a way to represent a Date in javascript with a float number like in ruby?</p>