Retrieving Date and Time From The Internet

Gregory Lypny gregory.lypny at videotron.ca
Wed Aug 17 09:21:08 EDT 2011


Much obliged, Scott.

Gregory


On Tue, Aug 16, 2011, at 6:46 PM, Scott Rossi wrote:

> A fun challenge.  Here's one option, limited to a single time (US Eastern),
> with no guarantee of reliability (can any Web-based service truly claim
> this?):
> 
> function timeStamp
>   put url "http://www.atomictime.net/front.html" into temp
>   wait 500 millisecs with messages
>   put url "http://www.atomictime.net/time_tel.html?2" into temp
>   repeat with N = number of lines of temp down to 1
>      if line N of temp is not empty then return line N of temp
>   end repeat
> end timeStamp
> 
> The reason for the dual URLs is the host requires initial access through a
> home page.  Only thing I can guess is there's some back-end foolery going on
> that's not accessible (at least I can't see anything that's apparent, but
> maybe that's just me).




More information about the use-livecode mailing list