# File lib/active_support/vendor/i18n-0.4.1/i18n/backend/cldr.rb, line 39 def format_datetime(locale, object, format = :default, options = {}) key = "calendars.gregorian.formats.datetime.#{format}.pattern""calendars.gregorian.formats.datetime.#{format}.pattern" date = I18n.l(object, :format => options[:date_format] || format, :locale => locale, :as => :date) time = I18n.l(object, :format => options[:time_format] || format, :locale => locale, :as => :time) I18n.t(key, :date => date, :time => time, :locale => locale, :raise => true) end