Re: Retrieving Date and Time From The Internet

2011-08-17 Thread Andre Garzia
Gregory, please give me feedback if you are able to query your ntp server with my stack! cheers andre On Wed, Aug 17, 2011 at 1:38 PM, Gregory Lypny wrote: > Hi Stephen Barncard and Andre Garzia, > > Cool functions! Thank you for sharing. Never thought my original question > was going to kick

Re: Retrieving Date and Time From The Internet

2011-08-17 Thread Gregory Lypny
Hi Stephen Barncard and Andre Garzia, Cool functions! Thank you for sharing. Never thought my original question was going to kick up so much dust! Gregory ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscrib

Re: Retrieving Date and Time From The Internet

2011-08-17 Thread Bob Sneidar
You guys never cease to amaze me. Well done! Now if a single developer can produce results like this overnight, I wonder why the very capable devs at RunRev cannot create a world time that does the same thing? Bob > Folks, > > this thread made me curious... > > I present to you a simple SNT

Re: Retrieving Date and Time From The Internet

2011-08-17 Thread Gregory Lypny
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.ato

Re: Retrieving Date and Time From The Internet

2011-08-17 Thread Andre Garzia
Folks, this thread made me curious... I present to you a simple SNTP stack go stack "http://andregarzia.com/stacks/libNTPToy.livecode"; It is a quick and dirty implementation with no error checking. It has one function getTime(), you pass the NTP server and it returns the current date and time

Re: Retrieving Date and Time From The Internet

2011-08-16 Thread stephen barncard
I thought it could be done directly with a time server, and one can! I did some dicking around with sockets and made this up. this uses the Daytime Protocol (RFC-867) function returnNISTime -- returns UTC time in RFC-867 (Daytime) format

Re: Retrieving Date and Time From The Internet

2011-08-16 Thread Bob Sneidar
Thanks Waren and Scott. I will have a look at those. I can extrapolate UTX time from those zones I suppose, and then do the math for the particular time zone in the system settings. Thanks. Bob On Aug 16, 2011, at 2:10 PM, Warren Samples wrote: > On Tuesday, August 16, 2011 11:13:58 AM Bob

Re: Retrieving Date and Time From The Internet

2011-08-16 Thread Warren Samples
On Tuesday, August 16, 2011 11:13:58 AM Bob Sneidar wrote: > Okay, I contacted the USNO site via email and requested that they include the > year in the returned date/time. You could try this: http://www.worldtimeserver.com/current_time_in_CA-QC.aspx Your time info is here in the html it retur

Re: Retrieving Date and Time From The Internet

2011-08-16 Thread Scott Rossi
Recently, Bob Sneidar wrote: > Until someone can come up with an HTTP link that returns the year with the > date and time, or else Livecode supports NTP queries, we are SOL. I have > searched high and low and cannot find one single web site besides > http://tycho.usno.navy.mil/cgi-bin/timer.pl tha

Re: Retrieving Date and Time From The Internet

2011-08-16 Thread Bob Sneidar
Okay, I contacted the USNO site via email and requested that they include the year in the returned date/time. I have a modified script which includes the year, but I caution you that the convert command is getting the current year from the system if it is not supplied, which defeats the whole