Changeset 174
- Timestamp:
- Aug 10, 2009, 12:07:11 PM (15 years ago)
- Location:
- ruby/branches/0.5/lib/open_ehr/rm/data_types
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
ruby/branches/0.5/lib/open_ehr/rm/data_types/encapsulated.rb
r167 r174 46 46 def charset_valid?(charset) 47 47 result = false 48 open(' rm/data_types/charset.lst') do |file|48 open('lib/open_ehr/rm/data_types/charset.lst') do |file| 49 49 while line = file.gets 50 50 if charset == line.chomp -
ruby/branches/0.5/lib/open_ehr/rm/data_types/quantity/date_time.rb
r167 r174 156 156 157 157 def magnitude 158 seconds = DateTime.new(@year,@month,@day,@hour,@minute,@second) -159 DateTime.new(0000,1,1,0,0,0)158 seconds = ::DateTime.new(@year,@month,@day,@hour,@minute,@second) - 159 ::DateTime.new(0000,1,1,0,0,0) 160 160 if @fractional_second.nil? 161 161 return seconds
Note:
See TracChangeset
for help on using the changeset viewer.