Minus DateTime by day
require 'date' sent = DateTime.new(2006, 10, 4, 3, 15) received = DateTime.new(2006, 10, 5, 16, 33) elapsed = (received-sent) * 24 puts "#{elapsed.to_f} hours after."