gsparx has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I have a question for all you internet perl guru's out there. I am trying to write a script that has a portion of code that I want to trigger at a specific date and time, but since the time that the code runs is very specific (down to the second) I need to have it run based off the website's time, and not my own local time in case they're slightly off. Is there a way to do this?
I was thinking I might be able to get the header from the URL, and that should have the date/time, but that seems very clumsy and it seems like there should be a better way. Can I ping the IP and get a time/date from it that way inside of a perl script? I am using WWW::Mechanize to submit forms on the website if that changes anything.
Thanks in advance for your help
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Website Date
by sauoq (Abbot) on May 16, 2012 at 23:36 UTC | |
by gsparx (Novice) on May 16, 2012 at 23:49 UTC | |
by afoken (Chancellor) on May 17, 2012 at 08:33 UTC |