title: Ruby - time.now in UTC
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/755669/how-do-i-convert-datetime-now-to-utc-in-ruby">How do I Convert DateTime.now to UTC in Ruby?</a>  </p>
  </blockquote>
  
  
  
  <p>How do I get current time in Date-time-milliseconds &amp; UTC? 
  Ex. 2012-03-22T18:48:40.873Z</p>
  
  <p>I tried - </p>
  
  <pre><code>Time.now.utc_offset.to_s
  Time.now.xs_datetime
  </code></pre>