How to detect which files need an update
Troy Rollins
troy at rpsystems.net
Sun Aug 15 11:34:31 EDT 2004
On Aug 15, 2004, at 3:36 AM, Ton Cardona wrote:
> The trouble is I am unable to convert the internet date I get from the
> FTP to seconds. Sounds silly, but I have tried again an again with no
> success and since the modification date in the files function is given
> in seconds, I am at a loss.
I honestly think you are going to have a hard time if the only
comparison you do is between the FTP's date, and the local machine's
date. You need to maintain a catalogue, and in that catalogue, you can
just store the date in the format the FTP supplies to compare the next
time you connect. Anything else will be very likely to be unreliable,
if only a little.
--
Troy
RPSystems, Ltd.
http://www.rpsystems.net
More information about the use-livecode
mailing list