SPUG: As some Perl and PHP are similar
Douglas Kirkland
douglas at slugstone.net
Sat Jul 20 06:57:15 CDT 2002
($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,
$size,$atime,$mtime,$ctime,$blksize,$blocks) = stat('file_name');
The '$mtime' gives the modification date for the file. Here is a shorter
version.
($mtime) = (stat("file_name"))[9];
Douglas
On Friday 19 July 2002 02:37 pm, Sweethomes wrote:
> I'm wondering if anyone has some wisdom to impart on how to get the file
> modification date to show up. I continuously get the directory
> modification date and absolutely no file modification dates. If you have a
> moment, please contact me and I'll send ya the details.
>
> I wanted to say thank you for the directory search (File::Find)
> information. I will be implementing this shortly!
>
> www.web-dev-design.com
> ------------------------------------
> Susanne Bullo, Developer Web Dev Design
> 16646 SE 10th Street Bellevue, WA 98008
> Telephone: 425.562.6040 Facsimile: 425.671.0571
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
POST TO: spug-list at pm.org PROBLEMS: owner-spug-list at pm.org
Subscriptions; Email to majordomo at pm.org: ACTION LIST EMAIL
Replace ACTION by subscribe or unsubscribe, EMAIL by your Email-address
For daily traffic, use spug-list for LIST ; for weekly, spug-list-digest
Seattle Perl Users Group (SPUG) Home Page: http://seattleperl.org
More information about the spug-list
mailing list