Getting Date Stamp of a file on a Win32 System
- From: davidlamontadams@xxxxxxxxx (Dave Adams)
- Date: Thu, 28 Jul 2005 12:48:26 -0400
On a Win32 system, how do you get a date stamp of a file?
I used:
#!/usr/bin/perl -w
use strict;
use Data::Dumper;
use File::stat;
my $filename = "test.txt";
my $stat = stat($filename);
print Dumper($stat);
my $modified_time = stat($filename)->mtime;
print ("The modified time of $filename is: $modified_time");
But this only gets me time. Nothing in the element list for STAT
seems to give me the date.
Any suggestions?
Thanks in advance.
DA
.
- Follow-Ups:
- Re: Getting Date Stamp of a file on a Win32 System
- From: Robert
- Re: Getting Date Stamp of a file on a Win32 System
- Prev by Date: Re: Adding a library to @INC
- Next by Date: Re: login shell?
- Previous by thread: error message with net::FTP
- Next by thread: Re: Getting Date Stamp of a file on a Win32 System
- Index(es):
Relevant Pages
|
|