Re: Getting Date Stamp of a file on a Win32 System
- From: catcher@xxxxxxxxxxxxx (Robert)
- Date: Thu, 28 Jul 2005 14:36:17 -0400
I found this maybe it will help:
use strict;
use File::stat;
use POSIX qw(strftime);
my $file = 'test.txt';
my $s = stat($file) || die "Can't stat($file) $!\n";
my $modtime = strftime('%Y-%m-%d', localtime($s->mtime));
print "Modification time of $file is $modtime\n";
.
- Follow-Ups:
- Re: Getting Date Stamp of a file on a Win32 System
- From: Dave Adams
- Re: Getting Date Stamp of a file on a Win32 System
- References:
- Getting Date Stamp of a file on a Win32 System
- From: Dave Adams
- Getting Date Stamp of a file on a Win32 System
- Prev by Date: RE: open > file && s/ / /;
- Next by Date: Re: error message with net::FTP
- Previous by thread: Getting Date Stamp of a file on a Win32 System
- Next by thread: Re: Getting Date Stamp of a file on a Win32 System
- Index(es):