2.1.0 :002 > Time.at(1432927800000/1000).to_s(:db) => "2015-05-29 22:30:00" # Instead of strftime will be better to use predefined :db pattern from ActiveSupport: