mIRC Home    About    Download    Register    News    Help

Print Thread
$file().atime #88083 24/06/04 07:43 PM
Joined: Dec 2002
Posts: 127
F
feud Offline OP
Vogon poet
OP Offline
Vogon poet
F
Joined: Dec 2002
Posts: 127
i'm writing a script to move some files from my external hdd to my internal one, and i want to move files i've only accessed within a variable period of time. the script will know what time frame when it is running, and looks at $file().atime. however, whenever mirc does a lookup on the file's last access time, it appears to be exactly when i look up the $file().atime. any workarounds/suggestions?


------
deep down, i'm really superficial.
Re: $file().atime #88084 24/06/04 08:56 PM
Joined: Dec 2002
Posts: 127
F
feud Offline OP
Vogon poet
OP Offline
Vogon poet
F
Joined: Dec 2002
Posts: 127
ok, i found that my $findfile command was accessing the file and changing the access time, and worked around that. my next problem (well, not really a problem, just an inconvenience) is that $ctime seems to only accept english date order (day/month/year). am i correct in thinking that?


------
deep down, i'm really superficial.
Re: $file().atime #88085 24/06/04 11:31 PM
Joined: Dec 2002
Posts: 2,962
S
starbucks_mafia Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
Yep, looks like it. At least it's a simple alias to convert between the two: alias dateConv return $deltok($instok($$1,$gettok($1,2,47),1,47),3,47)


Spelling mistakes, grammatical errors, and stupid comments are intentional.
Re: $file().atime #88086 25/06/04 12:45 AM
Joined: Dec 2002
Posts: 127
F
feud Offline OP
Vogon poet
OP Offline
Vogon poet
F
Joined: Dec 2002
Posts: 127
yeah, thanks


------
deep down, i'm really superficial.