module RubyXL::LegacyWorkbook

def base_date

def base_date
  if date1904 then 
    Date.new(1904, 1, 1)
  else
    # Subtracting one day to accomodate for erroneous 1900 leap year compatibility only for 1900 based dates
    Date.new(1899, 12, 31) - 1
  end
end