Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

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

by Joost (Canon)
on Jul 21, 2007 at 00:37 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (8)
As of 2024-03-28 12:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found