syber_punk has asked for the wisdom of the Perl Monks concerning the following question:
Although I appreciate the help I still cannot get it to work I will admit it may be my own fault I am sort a n00biemy ($atime, $mtime, $ctime) = (stat("c:\SPTHistory1.txt"))[8..10]; printf qq~ Accessed: %s Modified: %s Created: %s ~, get_real_time($atime), get_real_time($mtime), get_real_time($ctime); sub get_real_time ($) { my ($sec,$min,$hour,$mon,$mday,$year,$wday,$yday,$isdst) = gmt +ime $_[0]; $year += 1900; return "$year\_$mday\_$mon"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: strange error why is my code showing atime mtime and ctime a month to early
by Fletch (Bishop) on Sep 16, 2005 at 17:22 UTC | |
|
Re: strange error why is my code showing atime mtime and ctime a month to early
by graff (Chancellor) on Sep 16, 2005 at 22:19 UTC |