Thank you Mark, I’ll try it out. Peter
> On Sep 14, 2018, at 9:24 PM, Mark Wieder via use-livecode > <use-livecode@lists.runrev.com> wrote: > > On 09/14/2018 08:30 PM, Peter Bogdanoff via use-livecode wrote: > > I’m not seeing how to translate use of an NTP server into "LC-talk.” I > > would love to use it but Google doesn’t seem to have an API that I can > > access. And I would love the dependability of the Google universe. > > NTP uses port 13. > > constant kNTPsocket = "time.nist.gov:13" > > on mouseUp pMouseButton > open socket to kNTPsocket with message "opened" > if the result is not empty then > put the result after msg > end if > end mouseUp > > on opened > local tTime > > read from socket kNTPsocket until EOF > put it into tTime > put tTime after msg > close socket kNTPSocket > end opened > > -- > Mark Wieder > ahsoftw...@gmail.com > > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode