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

Strage result using localtime to convert epoch time

by punch_card_don (Curate)
on Jul 20, 2007 at 21:21 UTC ( #627886=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $file_w_path = "../../../images/".$filename;
    ($dev, $ino, $mode, $nlink, $uid, $gid, $rdev, $size, $atime, $mtime, 
    +$ctime, $blksize, $blocks) = stat($file_w_path);
    print "<br>mtime = $mtime\n";
    ($sec, $min, $hr, $day, $month, $year, $day_Of_Week, $julianDate, $dst
    +) = localtime($mtime);
    print "<br>$sec, $min, $hr, $day, $month, $year, $day_Of_Week, $julian
    +Date, $dst\n";
    
  2. or download this
    1182819156 
    Time::tm=ARRAY(0x84eb290), , , , , , , ,
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (1)
As of 2021-10-19 23:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (78 votes). Check out past polls.

    Notices?