Grabbing the Date and Time From a Time Server on the Internet
Gregory Lypny
gregory.lypny at videotron.ca
Mon Aug 15 17:28:07 EDT 2011
Thanks for this, Bob. I did some more poking around myself and this seems to work. Not too difficult remove the HTML.
on mouseUp
put url ("http://tycho.usno.navy.mil/cgi-bin/timer.pl")
end mouseUp
On Mon, Aug 15, 2011, at 3:45 PM, use-livecode-request at lists.runrev.com wrote:
> Message: 3
> Date: Mon, 15 Aug 2011 10:25:06 -0700
> From: Bob Sneidar <bobs at twft.com>
> To: How to use LiveCode <use-livecode at lists.runrev.com>
> Subject: Re: Grabbing the Date and Time From a Time Server on the
> Internet
> Message-ID: <5EC0DA15-9BE3-41D9-B047-250E2733C630 at twft.com>
> Content-Type: text/plain; charset=iso-8859-1
>
> This returns a ton of html, from which the date time can be filtered using "<H2>*", but since it takes about 30 seconds to run, and returns 32 entries, I am not sure how useful this would for him, if he wanted an exact time (within a second or two).
>
> Time servers are NTP:\\ aren't they? Looks like the revURL library does not support NTP, or not that I can see. Any attempt to use it in a URL returns empty in it and invalid URL: in the result.
>
> A quick browse for http based time servers came up dry.
>
> Bob
More information about the use-livecode
mailing list