Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: File dateby Discipulus (Canon) |
on Sep 19, 2014 at 07:52 UTC ( [id://1101163]=note: print w/replies, xml ) | Need Help?? |
Hello, File::stat is from 2003 and is an Object Interface to builtin Perl's stat function. with this: i got the same error as you (dunno why you got epoch(1 january 1970) minus one day). with File::Stat (note the big S) is ok: That is the rigth mtime of the file. Without using any module you use the core stat function and working as expected.
PS: Please view PerlMonks formatting tips and add code block. HtH L*
There are no rules, there are no thumbs.. Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.
In Section
Seekers of Perl Wisdom
|
|