# File lib/validates_timeliness/formats.rb, line 267 def unambiguous_year(year) if year.length <= 2 century = Time.now.year.to_s[0..1].to_i century -= 1 if year.to_i >= ambiguous_year_threshold year = "#{century}#{year.rjust(2,'0')}" end year.to_i end