DMckeon(_at_)swcp(_dot_)com (Denis McKeon) wrote:
In <387EE146(_dot_)E9A4FB1(_at_)gunnar(_dot_)cc>,
Gunnar Hjalmarsson <mailbox(_at_)gunnar(_dot_)cc> wrote:
Earl Hood wrote:
Probably quicker to just subtract 100 from $year if $year > 100
after $yearfull has been set:
    $year -= 100  if $year > 100;
Well, 100 must be included, of course:
     $year -= 100  if $year >= 100;
How about:
   $yearfull = $year + 1900;
   $year %= 100;
Everyone seems to be considering number solutions when I see a string
problem:
$year = substr ($year, -2);