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.

File Creation Date

Old posts that have not been replied to for several years.
Locked
X
XceL
Voice
Posts: 20
Joined: Wed Jan 14, 2004 8:57 pm

File Creation Date

Post by XceL »

How would I go about getting the date of when a file was created? Thanks. :)
g
greenbear
Owner
Posts: 733
Joined: Mon Sep 24, 2001 8:00 pm
Location: Norway

Post by greenbear »

afaik that info isnt stored anywhere (correct me if I'm wrong), but you can get the last access time with

Code: Select all

file atime <filename>
X
XceL
Voice
Posts: 20
Joined: Wed Jan 14, 2004 8:57 pm

Post by XceL »

Thanks. :)
g
greenbear
Owner
Posts: 733
Joined: Mon Sep 24, 2001 8:00 pm
Location: Norway

Post by greenbear »

you could use ctime

Code: Select all

set when [ctime [file atime filename]]
X
XceL
Voice
Posts: 20
Joined: Wed Jan 14, 2004 8:57 pm

Post by XceL »

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.
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

I think
file stat <file> <var>
would return the date of creation in the array name mtime. Read here.
Locked