This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.
For more information, see this announcement post . Click the X in the top right-corner of this box to dismiss this message.
Old posts that have not been replied to for several years.
XceL
Voice
Posts: 20 Joined: Wed Jan 14, 2004 8:57 pm
Post
by XceL » Wed Jul 06, 2005 6:51 pm
How would I go about getting the date of when a file was created? Thanks.
greenbear
Owner
Posts: 733 Joined: Mon Sep 24, 2001 8:00 pm
Location: Norway
Post
by greenbear » Wed Jul 06, 2005 7:18 pm
afaik that info isnt stored anywhere (correct me if I'm wrong), but you can get the last access time with
XceL
Voice
Posts: 20 Joined: Wed Jan 14, 2004 8:57 pm
Post
by XceL » Wed Jul 06, 2005 7:28 pm
Thanks.
greenbear
Owner
Posts: 733 Joined: Mon Sep 24, 2001 8:00 pm
Location: Norway
Post
by greenbear » Wed Jul 06, 2005 7:32 pm
you could use
ctime
Code: Select all
set when [ctime [file atime filename]]
XceL
Voice
Posts: 20 Joined: Wed Jan 14, 2004 8:57 pm
Post
by XceL » Wed Jul 06, 2005 7:41 pm
Is there another method because when using the last access time if my eggdrop dccsends the file, it changes that. Just wondering if there was something else, if not I can just store the access time in a text file.
Sir_Fz
Revered One
Posts: 3794 Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:
Post
by Sir_Fz » Wed Jul 06, 2005 8:16 pm
I think
file stat <file> <var>
would return the date of creation in the array name mtime. Read
here .