FREE Subscription to Dr. Dobb’s Digest: Same Great Content, New Digital Edition
Site Archive (Complete)
Dobbs M-Dev
Email
Print
Reprint

add to:
Del.icio.us
Digg
Google
Furl
Slashdot
Y! MyWeb
Blink
October 01, 2000

What Are MACtimes?

(Page 2 of 6)
Oct00: What Are MACtimes?


(a)
($dev, $inode, $mode, $nlink, $uid, $gid, $rdev, $size,
$atime, $mtime, $ctime, $blksize, $blocks) = lstat($filename);

print "$filename (MAC): $mtime,$atime,$ctime";

(b)
$change_to = time();                    # set to current time
utime($change_to, $change_to, $file);   # atime, mtime, filename

Example 1: (a) Using Perl's lstat() system call; (b) using the utime() system call.

Previous Page | 1 | 2 | 3 | 4 | 5 | 6 Next Page
RELATED ARTICLES
No Related Articles
TOP 5 ARTICLES
No Top Articles.



MICROSITES
FEATURED TOPIC

ADDITIONAL TOPICS

INFO-LINK