- Timestamp:
- Sep 29, 2009, 11:12:37 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ruby/branches/0.5/lib/open_ehr/rm/data_types/quantity/date_time.rb
r309 r311 60 60 day = future.day - past.day 61 61 else 62 month -=162 month = -1 63 63 previous_month = future.month - 1 64 if previous_month <= 064 if previous_month == 0 65 65 previous_month = 12 66 66 end … … 76 76 year -= 1 77 77 month += future.month + 12 - past.month 78 end 79 if month < 0 80 year -= 1 81 month += 12 78 82 end 79 83 year += future.year - past.year
Note:
See TracChangeset
for help on using the changeset viewer.