stas 2004/05/13 15:31:43
Modified: File File.pm Log: fix the mtime() entry (it's read-only) Revision Changes Path 1.8 +3 -3 modperl/File/File.pm Index: File.pm =================================================================== RCS file: /home/cvs/modperl/File/File.pm,v retrieving revision 1.7 retrieving revision 1.8 diff -u -u -r1.7 -r1.8 --- File.pm 16 Apr 2002 02:39:31 -0000 1.7 +++ File.pm 13 May 2004 22:31:43 -0000 1.8 @@ -161,11 +161,11 @@ =item $r->mtime() This method returns the last modified time of the requested file, -expressed as seconds since the epoch. The last modified time may also -be changed using this method, although update_mtime() method is better -suited to this purpose. +expressed as seconds since the epoch. my $date_string = localtime $r->mtime; + +To change the last modified time use the C<update_mtime()> method. =item $r->set_content_length()