> -----Original Message-----
> From: Jenda Krynicky [mailto:[EMAIL PROTECTED] 
> Sent: Monday, September 17, 2007 15:42
> To: beginners@perl.org
> Subject: Re: Using Perl Win 32 AS 5.8.x - Anyway to find the 
> File Create Date/Time
> 
> From: "Wagner, David --- Senior Programmer Analyst --- WGO" 
>       <[EMAIL PROTECTED]>
> >     stat will give me the mod time, but does not have the create
> > time. From Windows Explorer, I notice that I can get the 
> Create Date.
> 
> 
> perldoc -f stat
> 
> stat FILEHANDLE
> stat EXPR
> stat    Returns a 13-element list giving the status info for a file,
>         either the file opened via FILEHANDLE, or named by EXPR. If 
> EXPR
>         is omitted, it stats $_. Returns a null list if the stat 
> fails.
>         Typically used as follows:
> 
>             ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,
>                $atime,$mtime,$ctime,$blksize,$blocks)
>                    = stat($filename);
> 
>         Not all fields are supported on all filesystem types. Here 
> are
>         the meanings of the fields:
> 
>           0 dev      device number of filesystem
>           1 ino      inode number
>           2 mode     file mode  (type and permissions)
>           3 nlink    number of (hard) links to the file
>           4 uid      numeric user ID of file's owner
>           5 gid      numeric group ID of file's owner
>           6 rdev     the device identifier (special files only)
>           7 size     total size of file, in bytes
>           8 atime    last access time in seconds since the epoch
>           9 mtime    last modify time in seconds since the epoch
>          10 ctime    inode change time in seconds since the epoch (*)
>          11 blksize  preferred block size for file system I/O
>          12 blocks   actual number of blocks allocated
> 
>         (The epoch was at 00:00 January 1, 1970 GMT.)
> 
>         (*) Not all fields are supported on all filesystem types.
>         Notably, the ctime field is non-portable. In particular, you
>         cannot expect it to be a "creation time", see "Files and
>         Filesystems" in perlport for details.
> 
> The docs are still pretty Unix-centric it seems. "inode change time" 
> ... lovely. In particular, under Windows, this is the creation time.
> 
        Thanks much, Jenda. I was going thru a number of hoops, but no
one had responded. I knew the inode, but this first time I have seen it
explained that this is Creation time on win32.
        
        A really big help. I appreciate it very much.

          If you have any problems or questions, please let me know.

     Thanks.

  Wags ;)
David R Wagner
Senior Programmer Analyst
FedEx Freight
1.408.323.4225x2224 TEL
1.408.323.4449           FAX
http://fedex.com/us 
 

**********************************************************************
This message contains information that is confidential and proprietary to FedEx 
Freight or its affiliates.  It is intended only for the recipient named and for 
the express  purpose(s) described therein.  Any other use is prohibited.
**********************************************************************


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to