How to get UTC timestamp in Ruby?

Mohit Jain picture Mohit Jain · May 31, 2010 · Viewed 137.7k times · Source

How to get UTC timestamp in Ruby?

Answer

manzhikov picture manzhikov · May 31, 2010

You could use: Time.now.to_i.