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


in reply to Re: Strage result using localtime to convert epoch time
in thread Strage result using localtime to convert epoch time

Using CORE::localtime should work:
print join(',',CORE::localtime($epoch_seconds));

Replies are listed 'Best First'.
Re^3: Strage result using localtime to convert epoch time
by punch_card_don (Curate) on Jul 21, 2007 at 17:15 UTC
    Excellent.

    Simply changing to

    ($sec, $min, $hr, $day, $month, $year, $day_Of_Week, $julianDate, $dst +) = CORE::localtime($mtime);
    gave the desired result.

    Thanks