Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Fetching Properties info from a word document.

by grummerX (Pilgrim)
on Aug 20, 2002 at 16:16 UTC ( [id://191496]=note: print w/replies, xml ) Need Help??


in reply to Fetching Properties info from a word document.

The ctime value from stat does give you the file creation time on Windows, but not on Unix filesystems -- in their case ctime returns the inode change time rather than the file creation time. For example, this script prints out its own creation time:
#!perl -w use strict; use POSIX; my $file = $0; print strftime "Created: %Y-%m-%d %H:%M:%S", localtime ((stat $file)[1 +0]);

-- grummerX

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://191496]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (10)
As of 2024-04-19 08:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found