lib/emendate/date_utils.rb
# pass in segments. This pulls out literals
pass in segments. This pulls out literals
pass in segments . This pulls out literals
def valid_date?(yr, mth, day)
      begin
        Date.new(yr.literal, mth.literal, day.literal)
      rescue Date::Error
        valid_english_date?(yr, mth, day)
      else
        true
      end
    end
def valid_date? ( yr , mth , day ) begin Date . new ( yr . literal , mth . literal , day . literal ) rescue Date :: Error valid_english_date? ( yr , mth , day ) else true end end
pass in segments.
pass in segments .
yr
<not_specific>
mth
<not_specific>
day
<not_specific>