Re: Date and time format question

2024-07-30 Thread Niggemann, Bernd via use-livecode
Similar to Bob's and Jaque's but includes the delimiters: Additionally adds Minutes and +- offsets E.g. Nepal is 5 Hours 45 Minutes ahead of GMT/UTC -- -- create UTC timestamp: -- format: "2013-07-20T00:00:00Z" put the in

Re: Date and time format question

2024-07-30 Thread J. Landman Gay via use-livecode
Similar to Bob's but includes the delimiters: -- create UTC timestamp: -- format: "2013-07-20T00:00:00Z" put the seconds into tTime convert tTime to dateitems subtract (char 1 to -3 of last word of the internet date) from item 4 of tTime convert tTime to dateitems set the numberformat to

Re: Date and time format question

2024-07-29 Thread Bob Sneidar via use-livecode
Yeah but I think I got the math backwards. -0400 means the GMT is 4 hours AHEAD not behind. It should be subtract tOffset from tDateTime. Bob S > On Jul 29, 2024, at 4:11 PM, Paul Dupuis via use-livecode > wrote: > > Thanks! You math to do the offset is much simpler. > > On 7/29/2024 6:34

Re: Date and time format question

2024-07-29 Thread Paul Dupuis via use-livecode
On 7/29/2024 6:14 PM, Bob Sneidar via use-livecode wrote: Simpler than that: on mouseUp put "Mon, 29 Jul 2024 15:49:52 -0400" into tDateTime put word -1 of tDateTime into tOffset -- delete last word of tDateTime convert tDateTime to seconds put (tOffset / 100) *60 *60 into tO

Re: Date and time format question

2024-07-29 Thread Paul Dupuis via use-livecode
Thanks! You math to do the offset is much simpler. On 7/29/2024 6:34 PM, Bob Sneidar via use-livecode wrote: Meh never mind overthinking it. Both ways work. Bob S On Jul 29, 2024, at 3:30 PM, Bob Sneidar wrote: Actually it’s possible in some whacko time zones to get a rounding error by di

Re: Date and time format question

2024-07-29 Thread Bob Sneidar via use-livecode
Meh never mind overthinking it. Both ways work. Bob S > On Jul 29, 2024, at 3:30 PM, Bob Sneidar wrote: > > Actually it’s possible in some whacko time zones to get a rounding error by > dividing first so: > > … >> put (tOffset *60 *60) /100 into tOffset > … > > Bob S > > >> On Jul 29, 20

Re: Date and time format question

2024-07-29 Thread Bob Sneidar via use-livecode
Actually it’s possible in some whacko time zones to get a rounding error by dividing first so: … > put (tOffset *60 *60) /100 into tOffset … Bob S > On Jul 29, 2024, at 3:14 PM, Bob Sneidar via use-livecode > wrote: > > Simpler than that: > > on mouseUp > put "Mon, 29 Jul 2024 15:49:52

Re: Date and time format question

2024-07-29 Thread Bob Sneidar via use-livecode
Simpler than that: on mouseUp put "Mon, 29 Jul 2024 15:49:52 -0400" into tDateTime put word -1 of tDateTime into tOffset -- delete last word of tDateTime convert tDateTime to seconds put (tOffset / 100) *60 *60 into tOffset add tOffset to tDateTime convert tDateTime to long

Re: Date and time format question

2024-07-29 Thread Paul Dupuis via use-livecode
dateItems does not contain the timezone offset, so you would need to get the timezone offset from the internet date (the only format I can find that has it) and the break the offset into minutes and hours and perform the math. I haven't tested this code (yet), but I think the seconds is the wa

Re: Date and time format question

2024-07-29 Thread Bob Sneidar via use-livecode
That doesn’t work I’ll get back to you. Bob S > On Jul 29, 2024, at 2:37 PM, Bob Sneidar via use-livecode > wrote: > > Convert it to dateitems, then back again. > > Bob S > > >> On Jul 29, 2024, at 2:09 PM, Paul Dupuis via use-livecode >> wrote: >> >> Follow up question/request: >> >

Re: Date and time format question

2024-07-29 Thread Bob Sneidar via use-livecode
Convert it to dateitems, then back again. Bob S > On Jul 29, 2024, at 2:09 PM, Paul Dupuis via use-livecode > wrote: > > Follow up question/request: > > put the internet date into tTimestamp -- stores something like Mon, 29 Jul > 2024 16:49:52 -0400, where the -0400 is the time zone offset

Re: Date and time format question

2024-07-29 Thread Paul Dupuis via use-livecode
Follow up question/request: put the internet date into tTimestamp -- stores something like Mon, 29 Jul 2024 16:49:52 -0400, where the -0400 is the time zone offset Anyone have some already written code to convert this to a time in GMT (i.e where the time zone offset is +, i.e. Mon, 29 Jul

Re: Date and time format question

2024-07-29 Thread Paul Dupuis via use-livecode
Thank you all (and especially Curry for confirming what I though the Z was for) On 7/29/2024 3:44 PM, Curry Kenworthy via use-livecode wrote: ... 'Utc date and time values uses "Z" (which stands for zero offset) to represent UTC.' (MS) Best wishes, Curry Kenworthy

Re: Date and time format question

2024-07-29 Thread Curry Kenworthy via use-livecode
... 'Utc date and time values uses "Z" (which stands for zero offset) to represent UTC.' (MS) Best wishes, Curry Kenworthy Radically Innovative Christian LiveCode Development "PASSION for Elegant, Efficient Code!"

RE: Date and time format question

2024-07-29 Thread Ralph DiMola via use-livecode
runrev.com] On Behalf Of Paul Dupuis via use-livecode Sent: Monday, July 29, 2024 3:17 PM To: How to use LiveCode Cc: Paul Dupuis Subject: Date and time format question I have an export routine I am writing and it expects timestamps in the following format: 2018-03-27T17:46:39Z I can output LC dates

Re: Date and time format question

2024-07-29 Thread Curry Kenworthy via use-livecode
Paul: > it expects timestamps in the following format: > 2018-03-27T17:46:39Z Looks like MS Word Comments timestamp? If so, I can advise on the "Z"! Best wishes, Curry Kenworthy Radically Innovative Christian LiveCode Development "PASSION for Elegant, Efficient Code!" https://livecodeconsult

Date and time format question

2024-07-29 Thread Paul Dupuis via use-livecode
I have an export routine I am writing and it expects timestamps in the following format: 2018-03-27T17:46:39Z I can output LC dates and times in any format, but I personally have not seen this format before. The "T" is obviously just a delimited between the data and time, but my question is t

Re: Date and time

2019-06-06 Thread Glen Bojsza via use-livecode
Craig, Well done...not over done. I hope you’re out from under your desk. Glen On Thu, Jun 6, 2019 at 6:18 PM dunbarxx via use-livecode < use-livecode@lists.runrev.com> wrote: > Feel like I am overdoing this, but a bit more compact: > > on mouseUp >put "06-Jun-2019;09:05:21" into rawTime -

Re: Date and time

2019-06-06 Thread dunbarxx via use-livecode
Feel like I am overdoing this, but a bit more compact: on mouseUp put "06-Jun-2019;09:05:21" into rawTime -- your formatted moment here set the itemDel to "-" put item 1 of rawTime into tDay put itemOffset(item 2 of rawTime,"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec") into t

Re: Date and time

2019-06-06 Thread dunbarxx via use-livecode
And we should not be sloppy about using a function to display the answer, rather to return a value and let the calling handler do that. But I was avoiding actually working when I snuck this in, so I was typing from under my desk. Craig -- Sent from: http://runtime-revolution.278305.n4.nabble.c

Re: Date and time

2019-06-06 Thread dunbarxx via use-livecode
OF course you would need a little better than the last, so the DOW is not just entered by me for testing: on mouseUp put "06-Jun-2019;09:05:21" into rawTime put dissectRawTime(rawTime) into tSeconds convert rawTime to seconds end mouseUp function dissectRawTime rawtime get the long d

Re: Date and time

2019-06-06 Thread dunbarxx via use-livecode
Try this in a button script somewhere" on mouseUp put "06-Jun-2019;09:05:21" into rawTime put dissectRawTime(rawTime) into tSeconds convert rawTime to seconds end mouseUp function dissectRawTime rawtime get the long date ; convert it to dateItems set the itemDel to "-" put

Re: Date and time

2019-06-06 Thread Glen Bojsza via use-livecode
Obviously I overthought this (thanks Bob)...I was trying to convert the time separately and then the date and combining them which was leading to issues. The dictionary format example doesn't show this as being a solution... Glen On Thu, Jun 6, 2019 at 2:54 PM Bob Sneidar via use-livecode < use-

Re: Date and time

2019-06-06 Thread Bob Sneidar via use-livecode
First of all that date cannot be converted in that format. Secondly, try convert "Jun 6 2019 09:05:21" to seconds Bob S > On Jun 6, 2019, at 11:40 , Glen Bojsza via use-livecode > wrote: > > I'm pondering the easiest way to do a linear scale based on date and ti

Re: Date and time

2019-06-06 Thread dunbarxx via use-livecode
Hi. Write a simple function that dissects the string you gave. (Pseudo) function dissectOddFormat use itemDelimeters to isolate "06", "Jun", "2019", "09", "05" and "21" reform these strings into the date/time format local to your part of the planet convert that new string to seconds or tick

Date and time

2019-06-06 Thread Glen Bojsza via use-livecode
I'm pondering the easiest way to do a linear scale based on date and time data. My thoughts are that if you can change 06-Jun-2019;09:05:21 to epoch seconds then it would possible to take all the similar timestamped data and change it to seconds thus using it as an "x-axis" sca

Re: Getting the Date and Time From a Remote Computer

2012-01-16 Thread Gregory Lypny
Thanks again, Mike! Much obliged. Gregory On Mon, Jan 16, 2012, at 6:16 AM, use-livecode-requ...@lists.runrev.com wrote: > Message: 9 > Date: Sun, 15 Jan 2012 12:52:33 -0700 > From: Mike Bonner > To: How to use LiveCode > Subject: Re: Getting the Date and Time From a

Re: Getting the Date and Time From a Remote Computer

2012-01-15 Thread Mike Bonner
Yep the revonrockets and http stack by Andre works great and already has a sample of returning the time. It works great. The time example uses a .rev stack as a cgi. (look in the stacks folder) The stack script has examples of how to use the cgi stack. Currently it has a method for getting the in

Re: Getting the Date and Time From a Remote Computer

2012-01-15 Thread Mike Bonner
> > > The easiest way I can think of would be to have the web server running > and > > a page that returns the date and time. Alternatively you might be able > to > > turn on the ntp server for your mac and then talk to that. > > > > I'm sure there are

Re: Getting the Date and Time From a Remote Computer

2012-01-15 Thread Gregory Lypny
Thanks Mike and Stephen, I’ll give your suggestions a try. Gregory On Sun, Jan 15, 2012, at 1:00 PM, Mike Bonner wrote: > The easiest way I can think of would be to have the web server running and > a page that returns the date and time. Alternatively you might be able to > turn o

Re: Getting the Date and Time From a Remote Computer

2012-01-15 Thread stephen barncard
there a LiveCode handler that can be used to get the date and time from > a remote Mac that has a static IP address? > > Regards, > > Gregory > > ___ > use-livecode mailing list > use-livecode@lists.runrev.com > Please vi

Re: Getting the Date and Time From a Remote Computer

2012-01-15 Thread Mike Bonner
The easiest way I can think of would be to have the web server running and a page that returns the date and time. Alternatively you might be able to turn on the ntp server for your mac and then talk to that. I'm sure there are other ways too, but these are off the top of my head real quick

Getting the Date and Time From a Remote Computer

2012-01-15 Thread Gregory Lypny
Hello everyone, Is there a LiveCode handler that can be used to get the date and time from a remote Mac that has a static IP address? Regards, Gregory ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe

Re: And What About the Internet Date and Time?

2011-08-19 Thread Bob Sneidar
m the internet time adjusted by the system zone will be fine. If the purpose was to prevent someone from trying to use software that had expired, it would only work for at most a day, and then they would be in the same boat. That is why I (and everyone else who wrote a function) got the date and time

Re: And What About the Internet Date and Time?

2011-08-19 Thread Gregory Lypny
Hi Peter, Yes, seconds converted from UTC is the only reliable timestamp. I asked about time zone settings in local machines for display purposes. We may have a timestamp that is absolutely correct but if that is to be displayed for the user in a LiveCard app on their local machine, say as a

Re: Redux - Getting the Date and Time From the Internet

2011-08-19 Thread Gregory Lypny
Hi Mark, You’re right, it is absolutely correct. For my purposes GMT and UTC are equivalent because I’m not concerned with fractions of a second. Regards, Gregory On Fri, Aug 19, 2011, at 12:53 PM, use-livecode-requ...@lists.runrev.com wrote: > Gregory- > > Thursday, August 18, 2011, 2:42:

Re: And What About the Internet Date and Time?

2011-08-19 Thread Bob Sneidar
m still trying to nail down a reasonably >> accurate system-independent date and time stamp to use in my student client >> app that will submit and retrieve data from my Mac. I will post a modest >> enhancement to Stephan Barncard’s excellent returnNISTime function shortly. &g

Re: And What About the Internet Date and Time?

2011-08-19 Thread Bob Sneidar
ypny wrote: > Hello again everyone, > > Okay, please don’t hate me. I'm still trying to nail down a reasonably > accurate system-independent date and time stamp to use in my student client > app that will submit and retrieve data from my Mac. I will post a modest >

Re: Redux - Getting the Date and Time From the Internet

2011-08-18 Thread Mark Wieder
Gregory- Thursday, August 18, 2011, 2:42:22 PM, you wrote: > After playing with it, I’ve come to the conclusion that the only > correct, or most nearly correct, system-independent timestamp is the No, it's *absolutely* correct, by definition. It's off by the fraction of a second it takes the sig

Re: And What About the Internet Date and Time?

2011-08-18 Thread Peter M. Brigham, MD
On Aug 18, 2011, at 4:03 PM, Gregory Lypny wrote: > Hello again everyone, > > Okay, please don’t hate me. I'm still trying to nail down a reasonably > accurate system-independent date and time stamp to use in my student client > app that will submit and retrieve data from

Redux - Getting the Date and Time From the Internet

2011-08-18 Thread Gregory Lypny
Hello everyone, Here is a small enhancement to Stephen Barncard’s handler. If you call the function with the option “report” as in put nistTime(“report”) into field “Date and Time” you’ll get a summary. Set the field’s tabstops to 380 for a nice display. After playing with it, I’ve come to

Re: And What About the Internet Date and Time?

2011-08-18 Thread stephen barncard
e this if they are an online gamer. On 18 August 2011 13:03, Gregory Lypny wrote: > Hello again everyone, > > Okay, please don’t hate me. I'm still trying to nail down a reasonably > accurate system-independent date and time stamp to use in my student client > app that will subm

Re: And What About the Internet Date and Time?

2011-08-18 Thread Andre Garzia
bly > accurate system-independent date and time stamp to use in my student client > app that will submit and retrieve data from my Mac. I will post a modest > enhancement to Stephan Barncard’s excellent returnNISTime function shortly. > > My question is, How does LiveCode know the lo

And What About the Internet Date and Time?

2011-08-18 Thread Gregory Lypny
Hello again everyone, Okay, please don’t hate me. I'm still trying to nail down a reasonably accurate system-independent date and time stamp to use in my student client app that will submit and retrieve data from my Mac. I will post a modest enhancement to Stephan Barncard’s exce

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
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 in seconds

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 a Remote Computer

2011-08-17 Thread Gregory Lypny
Hi Jacqueline, Yes, the date and time must be embedded in the file. An example would be that of subjects participating in an experiment where the client app is the vehicle running it. The app may be a simple questionnaire or a simulation that tracks their choices and activities. The

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: 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 dat

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: 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-

Re: Retrieving Date and Time From The Internet

2011-08-16 Thread Bob Sneidar
purpose of getting the Real Time. We are still at the mercy of the system date and whatever the user sets it to. 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

Re: Retrieving Date and Time From a Remote Computer

2011-08-16 Thread J. Landman Gay
On 8/16/11 12:31 PM, Gregory Lypny wrote: Hi Stephen, Yes, and Bob Sneidar has kindly provided us with a function that does that (see "Re: Grabbing the Date and Time From a Time Server on the Internet”). The only thing it lacks at the moment is the year. I asked about doing the same w

Re: Retrieving Date and Time From a Remote Computer

2011-08-16 Thread Gregory Lypny
Hi Stephen, Yes, and Bob Sneidar has kindly provided us with a function that does that (see "Re: Grabbing the Date and Time From a Time Server on the Internet”). The only thing it lacks at the moment is the year. I asked about doing the same with a remote computer only to explo

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: Retrieving Date and Time From a Remote Computer

2011-08-16 Thread stephen barncard
away. I was thinking of other ways > of not relying on the date and time settings of users who would FTP data to > me. If my client app can grab the date and time from my office make, then I > have a consistent timestamp that I can rely on. > > > Gregory > > > > O

Re: Retrieving Date and Time From a Remote Computer

2011-08-16 Thread Gregory Lypny
Hi Bob, No, just my office Mac a few kilometres away. I was thinking of other ways of not relying on the date and time settings of users who would FTP data to me. If my client app can grab the date and time from my office make, then I have a consistent timestamp that I can rely on. Gregory

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: Retrieving Date and Time From a Remote Computer

2011-08-16 Thread Bob Sneidar
). Or else you would have to set up some kind of server that could be queried, but still firewall issues. Bob On Aug 16, 2011, at 6:31 AM, Gregory Lypny wrote: > Hello everyone, > > Another date and time retrieval question: How can I retrieve the date and > time from m

Retrieving Date and Time From a Remote Computer

2011-08-16 Thread Gregory Lypny
Hello everyone, Another date and time retrieval question: How can I retrieve the date and time from my remote Mac? Regards, Gregory ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and

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

2011-08-15 Thread Pete
Sneidar wrote: > 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 re

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

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 L

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