in reply to Remote File - Last Modification Time
I see three solutions, in order of knowlege of the server required:
1: Take all times mod. one hour -- that is, compare based only on minutes and seconds. This will give odd results fairly often -- use it only if you know you'll be running often.
2: Put the offset from GMT (or your localtime) in a config file for each server.
3: Create a file on the server, then use it's time as your "now".
Hm, I just thought of a number four: if the server also has a HTTP server on it, send a request, and guess off of the Date: header returned. That is, of course, rather fragile, but it's better then nothing.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Remote File - Last Modification Time
by pfaut (Priest) on Jan 05, 2003 at 16:18 UTC |