ruby datatimme convert unix timestamp

DateTime.something.to_time.to_i 1