Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Strage result using localtime to convert epoch time

by punch_card_don (Curate)
on Jul 20, 2007 at 23:58 UTC ( #627913=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://627913]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2021-10-16 14:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (69 votes). Check out past polls.

    Notices?