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


in reply to Strage result using localtime to convert epoch time

Yep - that's it - a little utility that a sub-routine required uses Time::localtime - completely forgot.

Thanks.

So, is there a way to convert my epoch time to regular time using Time::localtime?

  • Comment on Re: Strage result using localtime to convert epoch time

Replies are listed 'Best First'.
Re^2: Strage result using localtime to convert epoch time
by Joost (Canon) on Jul 21, 2007 at 00:37 UTC
      Excellent.

      Simply changing to

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

      Thanks