Ignore:
Timestamp:
Sep 29, 2009, 11:12:37 AM (15 years ago)
Author:
KOBAYASHI, Shinji
Message:

DvDate completed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ruby/branches/0.5/lib/open_ehr/rm/data_types/quantity/date_time.rb

    r309 r311  
    6060                day = future.day - past.day
    6161              else
    62                 month -= 1
     62                month = -1
    6363                previous_month = future.month - 1
    64                 if previous_month <= 0
     64                if previous_month == 0
    6565                  previous_month = 12
    6666                end
     
    7676                year -= 1
    7777                month += future.month + 12 - past.month
     78              end
     79              if month < 0
     80                year -= 1
     81                month += 12
    7882              end
    7983              year += future.year - past.year
Note: See TracChangeset for help on using the changeset viewer.