On Mon, 15 Sep 2003, $Bill Luebkert wrote: > alex p wrote: > > > Hello all, > > > > I am trying to figure out a way to get the "last modified" date of a file. > > I have looked at the following modules but they dont seem to address what i > > need: stat, utime, opendir > > > > does anyone know how to go about getting this date? > > stat should be fine : my $mtime = (stat $path)[9]; >
And then to convert the $mtime to something useful, give it to localtime(), e.g. @date_fields=localtime($mtime); OR $The_last_mod_time=scalar localtime($mtime); **** [EMAIL PROTECTED] <Carl Jolley> **** All opinions are my own and not necessarily those of my employer **** _______________________________________________ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs