Grabbing the Date and Time From a Time Server on the Internet

Gregory Lypny gregory.lypny at videotron.ca
Mon Aug 15 17:29:31 EDT 2011


Thanks Stephen,

I too came across this one today.  Looks pretty easy to parse.

Gregory


On Mon, Aug 15, 2011, at 3:45 PM, use-livecode-request at lists.runrev.com wrote:

> Message: 14
> Date: Mon, 15 Aug 2011 11:57:24 -0700
> From: stephen barncard <stephenREVOLUTION2 at barncard.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:
> 	<CAFmQfH+BdsdJb3Dmzz3TbmTm=EtE4MDrXJYYKx3w0xuG0BxC8A at mail.gmail.com>
> Content-Type: text/plain; charset=UTF-8
> 
> Bob, I don't see a "ton of html" at
> http://tycho.usno.navy.mil/cgi-bin/timer.pl
> It's just about as simple as it could be presented. It took just a few lines
> of Livecode to scrape. Determine AM and PM and one could even translate to
> 24 hour clock. There's about a half second of latency.
> 
> I just see this html:
> 
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final"//EN>
> <html>
> <body>
> <TITLE>What time is it?</TITLE>
> <H2> US Naval Observatory Master Clock Time</H2> <H3><PRE>
> <BR>Aug. 15, 18:52:50 UTC		Universal Time
> <BR>Aug. 15, 02:52:50 PM EDT	Eastern Time
> <BR>Aug. 15, 01:52:50 PM CDT	Central Time
> <BR>Aug. 15, 12:52:50 PM MDT	Mountain Time
> <BR>Aug. 15, 11:52:50 AM PDT	Pacific Time
> <BR>Aug. 15, 10:52:50 AM AKDT	Alaska Time
> <BR>Aug. 15, 08:52:50 AM HAST	Hawaii-Aleutian Time
> </PRE></H3><P><A HREF="http://www.usno.navy.mil"> US Naval Observatory</A>
> 
> </body></html>
> 




More information about the use-livecode mailing list