Mar 10, 2004 #1 fabien Technical User Sep 25, 2001 299 AU Hi! $data_file="xxx/asidata.cgi"; open(DAT, $data_file) || die("Could not open file!"); @raw_data=<DAT>; close(DAT); I would like to display the date when xxx/asidata.cgi was created, how can get this info? Thanks,
Hi! $data_file="xxx/asidata.cgi"; open(DAT, $data_file) || die("Could not open file!"); @raw_data=<DAT>; close(DAT); I would like to display the date when xxx/asidata.cgi was created, how can get this info? Thanks,
Mar 10, 2004 1 #2 PaulTEG Technical User Sep 26, 2002 4,469 IE (@filedata)=stat $data_file; $change_time=$filedata[10]; $last_access=$filedata[9]; you can also use -C as a file test operator to return the nyumber of days since the inode was changed. What that is I'm not sure HTH --Paul Upvote 0 Downvote
(@filedata)=stat $data_file; $change_time=$filedata[10]; $last_access=$filedata[9]; you can also use -C as a file test operator to return the nyumber of days since the inode was changed. What that is I'm not sure HTH --Paul
Mar 10, 2004 Thread starter #3 fabien Technical User Sep 25, 2001 299 AU Thanks but I get 1078912114 as a result of $change_time what format is this? Upvote 0 Downvote
Mar 10, 2004 #4 PaulTEG Technical User Sep 26, 2002 4,469 IE 1078912114 is the number of seconds since the epoch Jan 1 1970 Code: $var=1078912114 ; print scalar localtime($var); HTH --Paul Upvote 0 Downvote
1078912114 is the number of seconds since the epoch Jan 1 1970 Code: $var=1078912114 ; print scalar localtime($var); HTH --Paul