Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: Strage result using localtime to convert epoch time

by Joost (Canon)
on Jul 21, 2007 at 00:37 UTC ( #627915=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2021-10-22 16:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (85 votes). Check out past polls.

    Notices?