http://www.perlmonks.org?node_id=885251

szabgab has asked for the wisdom of the Perl Monks concerning the following question:

field 5 returned by localtime() in list context is the year. In order to get back the date one needs to write $year + 1900.
   ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time);

Does anyone know why did Larry make it that way?

Update

Title corrected thanks to Re: Why does localtime() return 1900-$YEAR?