lib/openehr/rm/data_structures/history.rb in openehr-1.2.15 vs lib/openehr/rm/data_structures/history.rb in openehr-1.2.16

- old
+ new

@@ -1,11 +1,13 @@ # rm::data_structures::history # history module # http://www.openehr.org/uml/release-1.0.1/Browsable/_9_0_76d0249_1109157527311_729550_7234Report.html # refs #55 require 'time' +require 'active_support' require 'active_support/core_ext' +#require 'active_support/deprecation' require_relative '../common/archetyped' require_relative '../data_structures' require_relative '../data_types/quantity/date_time' @@ -105,10 +107,10 @@ start_time = (@width.minutes).minutes.ago start_time seconds = @width.seconds unless @width.fractional_second.nil? seconds += @width.fractional_second end - start_time = seconds.ago start_time + start_time = seconds.seconds.ago start_time return OpenEHR::RM::DataTypes::Quantity::DateTime::DvDateTime.new(:value => start_time.iso8601) end end end # end of History end # end of DataStructure