Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- MODIFIED DATE AN D TIME
November 6, 2005, 6:02 am
rate this thread
Re: MODIFIED DATE AN D TIME
Activestate,Windows XP + Perl 5.8
I need some help with a function that I use to create files.
I have a source file that I use to get parameters to create the new
I need to get the modified date and time of the source file and set the
last modified date of the new file to the source file's last modified
code so far
$modified = time - ((-M $file) * 86400);
$filemdate = localtime($modified);
$filemdate = UnixDate ($filemdate, "%Y%m%d - %H%M%S");
But this is a value that changes as time changes and is not static....
Please help if you can.
- » FAQ 8.30 How can I convert my shell script to perl?
- — Previous thread in » PERL Discussions