From: | Oliver Roberts |
Date: | 04 Aug 2000 at 22:18:13 |
Subject: | Re: Comparing dates |
Hi Jack,
On 04-Aug-00 14:22:08 BST, Jack York wrote:
>> Presumably you have a good reason for using ExAll() - i.e. the code that
>> you sent is in a loop and actually scanning a dir contents. However,
> It is in a loop scanning the directory since there could be more than one
> file I'm looking at. The only reason I am using ExAll is because it is
> the newer function. I thought it was the better way to go although I
> haven't used any of them before so I'm only guessing.
Yep, fair enough.
>> As for a better way... You could maybe use timer.device/GetSysTime() to
>> obtain the system time in seconds, rather than use DateStamp() and
>> calculating the number of seconds from that. And if the format of the
>> date output is not particularly important then you could use DateToStr()
>> instead.
> It looked like DateStamp was a lot easier. Wouldn't using the timer
> device to get the current time add a lot of extra code?
I guess - you'd have to open timer.device first, but the extra code needed
wouldn't make much difference overall since you'd not need to convert the
times to seconds yourself. But, really I didn't mean to imply this was a
better way - just a different way of doing it :)