tags:

views:

88

answers:

4

How to get UTC timestamp in ruby.?

A: 

You can use Time.new.

sovanesyan
A: 
time = Time.now.getutc
Joey
A: 

Time.utc(2010, 05, 17)

August Lilleaas
+2  A: 

You can use Time.now.to_i

manzhikov