Method: Congo::Types::Date.increment_year

Defined in:
lib/congo/types.rb

.increment_year(year) ⇒ Object



55
56
57
58
59
60
61
# File 'lib/congo/types.rb', line 55

def self.increment_year(year)
  if year < 100
    year < 30 ? 2000 : 1900
  else
    0
  end
end