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

2011-08-17 Thread Andre Garzia
that one, Bob. > > Gregory > > > On Tue, Aug 16, 2011, at 6:46 PM, use-livecode-request@lists.runrev.comwrote: > > > Message: 2 > > Date: Tue, 16 Aug 2011 10:31:13 -0700 > > From: Bob Sneidar > > To: How to use LiveCode > > Subject: Re: Grabbing t

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

2011-08-17 Thread Gregory Lypny
I too am scratching my head on that one, Bob. Gregory On Tue, Aug 16, 2011, at 6:46 PM, use-livecode-requ...@lists.runrev.com wrote: > Message: 2 > Date: Tue, 16 Aug 2011 10:31:13 -0700 > From: Bob Sneidar > To: How to use LiveCode > Subject: Re: Grabbing the Date and Time Fro

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

2011-08-16 Thread Bob Sneidar
I see the problem here. The url I use does not return the year! And I cannot just get the year from the system date, because that defeats the whole purpose of a "RealTime" function. Going to have to do a bit more research. Bob On Aug 16, 2011, at 9:33 AM, Gregory Lypny wrote: > Hi Bob, > >

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

2011-08-16 Thread Gregory Lypny
16, 2011, at 11:44 AM, use-livecode-requ...@lists.runrev.com wrote: > Message: 1 > Date: Mon, 15 Aug 2011 17:04:42 -0700 > From: Bob Sneidar > To: How to use LiveCode > Subject: Re: Grabbing the Date and Time From a Time Server on the > Internet > Message-ID: <

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

2011-08-15 Thread Pete
Ah, so the "internet date" is not really the internet date at all it's just whatever the computer's current date is in internet format. Interesting, didn't know that. Pete Molly's Revenge On Mon, Aug 15, 2011 at 5:04 PM, Bob Sneidar wrote: > The Internet Date r

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

2011-08-15 Thread Bob Sneidar
The Internet Date returns the date and time, along with the current time zone set in your preferences. If the user changes his date and time manually though, it will faithfully return whatever the user enters. Querying a time server on the internet will always return the real date and time. Su

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

2011-08-15 Thread Pete
I missed the beginning of this thread so I'm probably missing the point here, but what's wrong with using the LC "internet date"? Pete Molly's Revenge On Mon, Aug 15, 2011 at 3:19 PM, Bob Sneidar wrote: > I may have sent you a version that was bugged. This is th

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

2011-08-15 Thread Bob Sneidar
I may have sent you a version that was bugged. This is the final one I came up with: function realTime theFormat, useOffset if useOffset is empty then put false into useOffset put "http://tycho.usno.navy.mil/cgi-bin/timer.pl"; into theURL get url theURL put it into theResult filter

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

2011-08-15 Thread Peter M. Brigham, MD
In my testing, the convert command fails with the date as given by the webpage, because the date lacks the year. Hence the need to insert the year first. And there needs to be no comma in the date. -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig On Aug 15, 2011, at

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

2011-08-15 Thread Gregory Lypny
gt; Subject: Re: Grabbing the Date and Time From a Time Server on the > Internet > Message-ID: > > 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 sim

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

2011-08-15 Thread Gregory Lypny
> Message: 3 > Date: Mon, 15 Aug 2011 10:25:06 -0700 > From: Bob Sneidar > To: How to use LiveCode > Subject: Re: Grabbing the Date and Time From a Time Server on the > Internet > Message-ID: <5ec0da15-9be3-41d9-b047-250e2733c...@twft.com> > Content-Type:

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

2011-08-15 Thread Bob Sneidar
I suppose I could do that and then do a conversion coming and going. Bob On Aug 15, 2011, at 1:46 PM, Warren Samples wrote: > On Monday, August 15, 2011 12:31:25 PM Bob Sneidar wrote: >> This interests me, because while I could depend on the system time I >> suppose, to datetimestamp entries

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

2011-08-15 Thread Warren Samples
On Monday, August 15, 2011 12:31:25 PM Bob Sneidar wrote: > This interests me, because while I could depend on the system time I suppose, > to datetimestamp entries in an SQL tab But wouldn't it be simpler, and smarter, to let the db create and store store its own timestamp as the insert is made

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

2011-08-15 Thread Bob Sneidar
Maybe a little more concise: function realTime theFormat breakpoint put "http://tycho.usno.navy.mil/cgi-bin/timer.pl"; into theURL get url theURL put it into theResult filter theResult with "*UTC*" replace "" with empty in theResult put word 1 to 3 of theResult into the

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

2011-08-15 Thread Bob Sneidar
Beat me to the punch! Bob On Aug 15, 2011, at 12:15 PM, Peter M. Brigham, MD wrote: > I'll try sending this again, revised (third time -- someone let me know > please if it's getting through). It returns the time fast enough (with a > speedy connection) to be within a second or so.

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

2011-08-15 Thread Bob Sneidar
Looks like only the time zones applicable to the US, however a simple table of time zones and their +/- relation to Universal Time could easily make this into a capable International Time function, once you knew the user's current time zone. This interests me, because while I *could* depend on

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

2011-08-15 Thread Bob Sneidar
Oh hey there you go! But that was not the URL originally posted. Bob On Aug 15, 2011, at 11:57 AM, stephen barncard wrote: > 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 Liv

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

2011-08-15 Thread Peter M. Brigham, MD
I'll try sending this again, revised (third time -- someone let me know please if it's getting through). It returns the time fast enough (with a speedy connection) to be within a second or so. -- You can fetch the time from the U.S. Naval Observatory atomic clock. This assumes

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

2011-08-15 Thread stephen barncard
it's UDP. One could use sockets in Livecode. Probably pretty easy to make a Time Server LIb here's the poop from the time people http://www.nist.gov/pml/div688/grp40/its.cfm On 15 August 2011 11:57, stephen barncard wrote: > Bob, I don't see a "to

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

2011-08-15 Thread stephen barncard
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

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

2011-08-15 Thread Bob Sneidar
This returns a ton of html, from which the date time can be filtered using "*", 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

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

2011-08-13 Thread Peter M. Brigham, MD
On Aug 13, 2011, at 8:22 PM, stephen barncard wrote: > you can see your own posts in 'ALL MAIL' and move the ones that matter to > the inbox. > Also once part of a thread, it will show up. That would be fine if I were using gmail via the browser, but I have my Mac Mail client set to fetch mail

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

2011-08-13 Thread Mark Wieder
stephen- Saturday, August 13, 2011, 5:22:35 PM, you wrote: > you can see your own posts in 'ALL MAIL' and move the ones that matter to > the inbox. > Also once part of a thread, it will show up. True, but that's cheating, kind of. They're only in the All Mail folder because you sent them, not be

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

2011-08-13 Thread stephen barncard
you can see your own posts in 'ALL MAIL' and move the ones that matter to the inbox. Also once part of a thread, it will show up. On 13 August 2011 16:33, Mark Wieder wrote: > Peter- > > Saturday, August 13, 2011, 2:03:05 PM, you wrote: > > > I sent this message a couple days ago, apparently it

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

2011-08-13 Thread Mark Wieder
Peter- Saturday, August 13, 2011, 2:03:05 PM, you wrote: > I sent this message a couple days ago, apparently it never went > through. (Parenthetically, even though I've set my preferences on > the use-Livecode mailing list webpage to "Receive your own posts to > the list" = "yes", I never see any

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

2011-08-13 Thread Peter M. Brigham, MD
On Aug 13, 2011, at 1:33 PM, Gregory Lypny wrote: > Taking another kick at the cat here. I’d like to use something like > > get url (http://[time server address]) > > to grab the current date and time from an official time server. This would > be used in a LiveCode standalone distribute

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

2011-08-13 Thread Mark Wieder
Gregory- Saturday, August 13, 2011, 10:33:29 AM, you wrote: > Taking another kick at the cat here. I’d like to use something like > get url (http://[time server address]) How's this? http://tycho.usno.navy.mil/cgi-bin/anim -- -Mark Wieder mwie...@ahsoftware.net __

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

2011-08-13 Thread Gregory Lypny
Taking another kick at the cat here. I’d like to use something like get url (http://[time server address]) to grab the current date and time from an official time server. This would be used in a LiveCode standalone distributed to collaborators and grad students who would use it to exp