Re: Setting Creation Date of file to a past date?

2021-03-15 Thread Mark Wieder via use-livecode
Sean- Thanks. I didn't know about SetFile. -- 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:

Re: Setting Creation Date of file to a past date?

2021-03-15 Thread Sean Cole (Pi) via use-livecode
I used quotes wrong, use this: >From LC, use: put "powershell -command ^(Get-Item 'C:\Folder\File.txt').CreationTime=('31 December 2019 23:59:59')^" into tShell replace "^" with quote in tShell get shell(tShell) Sean On Tue, 16 Mar 2021 at 03:57, Sean Cole (Pi) wrote: > Touch tells it to

Re: Setting Creation Date of file to a past date?

2021-03-15 Thread Sean Cole (Pi) via use-livecode
Touch tells it to update to now unless the date set is in the past and you use the -d modifier. If you install the Command Line Tools package from Apple on a mac you can use the much better SetFile -d '12/31/1999 23:59:59' file.txt On windoze, using powershell, send the command: (Get-Item

Re: Setting Creation Date of file to a past date?

2021-03-15 Thread Mark Wieder via use-livecode
On 3/14/21 4:41 PM, matthias rebbe via use-livecode wrote: Windows unfortunately does not include such a command line tool I am astounded to find there is no touch command for Win. However, there does appear to be a solution for Windows (untested) using commandline options for the copy

Re: Setting Creation Date of file to a past date?

2021-03-14 Thread matthias rebbe via use-livecode
Windows unfortunately does not include such a command line tool, but it should be possible to do that with a powershell command which is executed with the Shell() function. so for example this command here put shell("powershell (ls c:/users/matthias/test.txt).CreationTime = get-date

Re: Setting Creation Date of file to a past date?

2021-03-14 Thread Phil Davis via use-livecode
On Mac or Linux you can use the "touch" shell command - not sure if it's available on Windows. You can download the "Shell Command Help" LC plugin to simplify access to info about it. Phil Davis On 3/14/21 1:04 PM, Michael Kristensen via use-livecode wrote: Hi there I want to create/export

Re: Up to date installation guide for LiveCode community server?

2018-09-02 Thread Tom Glod via use-livecode
This is the bash scripts I used to successfully install LC Server...obviously it has customized filenames in it. #!/bin/bash #- # install LC Server #- cd ~

Re: Up to date installation guide for LiveCode community server?

2018-09-02 Thread Mark Waddingham via use-livecode
File a bug and we'll see if we can move the (appropriate) information into a guide in the main repo (so the docs aren't just a webpage). mergJSON is licensed under the GPL - https://github.com/montegoulding/mergJSON/blob/master/LICENSE.txt Warmest Regards, Mark Sent from my iPhone > On 2

Re: Up to date installation guide for LiveCode community server?

2018-09-02 Thread Richard Gaskin via use-livecode
Malte Pfaff-Brill wrote: > I am currently searching for an up to date installation guide for live > code community server. For at least Linux 64 Bit and Windows Servers. > What I was able to dig up on the liveCode sites is rather outdated. > :-( The Common Gateway Interface LC uses is pretty

Re: is a date

2017-10-20 Thread Bob Sneidar via use-livecode
Because Friday, October 20, 2017 is also a date. So is 2017-10-20. So is 2017/10/20. So is 17/10/20 amd 9/20/17. Bob S > On Oct 20, 2017, at 08:43 , trevix via use-livecode > wrote: > > How about this: > > function IsDate pDate, pSysDate > > if pSysDate

Re: is a date

2017-10-20 Thread trevix via use-livecode
How about this: function IsDate pDate, pSysDate if pSysDate then put char 3 of the short system dateformat into tDelimiter else put char 3 of the short dateformat into tDelimiter end if if tDelimiter is in pDate and pDate is a date then return true return false end IsDate trevix

Re: is a date

2017-10-16 Thread Mike Kerner via use-livecode
gt; On Oct 16, 2017, at 10:14 , Andrew Bell via use-livecode < >> use-livecode@lists.runrev.com> wrote: >> > >> >> From: Bob Sneidar <bobsnei...@iotecdigital.com> >> >> To: How to use LiveCode <use-livecode@lists.runrev.com> >> >>

Re: is a date

2017-10-16 Thread Mike Kerner via use-livecode
l date. > > Bob S > > > > On Oct 16, 2017, at 10:14 , Andrew Bell via use-livecode < > use-livecode@lists.runrev.com> wrote: > > > >> From: Bob Sneidar <bobsnei...@iotecdigital.com> > >> To: How to use LiveCode <use-livecode@lists.runrev

Re: is a date

2017-10-16 Thread Bob Sneidar via use-livecode
; >> From: Bob Sneidar <bobsnei...@iotecdigital.com> >> To: How to use LiveCode <use-livecode@lists.runrev.com> >> Subject: Re: is a date >> Message-ID: <6eb529a3-5d21-4186-bd90-641746e96...@iotecdigital.com> >> Content-Type: text/plain; charset="u

Re: is a date

2017-10-16 Thread Andrew Bell via use-livecode
From: Bob Sneidar <bobsnei...@iotecdigital.com> To: How to use LiveCode <use-livecode@lists.runrev.com> Subject: Re: is a date Message-ID: <6eb529a3-5d21-4186-bd90-641746e96...@iotecdigital.com> Content-Type: text/plain; charset="us-ascii" This probably matters to

Re: is a date

2017-10-16 Thread Roger Eller via use-livecode
Again, I would prefer a simple one-liner built-in function. What if instead of "is a date" returning true or false, it instead returned some expected outputs like "short, long, internet, seconds, ect.". Something short and sweet. ~Roger On Mon, Oct 16, 2017 at 12:56 PM, Bob Sneidar via

Re: is a date

2017-10-16 Thread Bob Sneidar via use-livecode
This probably matters to no one at all, but SQL does not store dates with forward slashes. SQL datetime formats look like this: -dd-mm hh:mm:ss Bob S ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to

Re: is a date

2017-10-16 Thread Bob Sneidar via use-livecode
This of course assumes you know tDate is supposed to be a short date. I also have this function which is part of the master library methinks: function formatDate theDate, theFormat /* Accepts any valid date for the first parameter. If not a valid date, it simply returns what was

Re: is a date

2017-10-16 Thread Bob Sneidar via use-livecode
Old trick I learned in Foxpro. Convert something then convert it back and see if it is identical. put 20 into tDate put tDate into tOldDate convert tDate to dateitems convert tDate to short date return ((tDate is a date) and (tDate is tOldDate)) Bob S

Re: is a date

2017-10-16 Thread Roger Eller via use-livecode
Exactly! I was elated to find the built-in "is a date" check, because I really wanted to NOT have to roll my own. I was THRILLED that our lovely English-like syntax was working FOR me. And then an integer was accepted as a legit date. I didn't like that at all. Why can't the engine have "is a

Re: is a date

2017-10-16 Thread hh via use-livecode
> JLG wrote ... > The one exception may be that any _integer_ is considered a date. > To get around that we could just check that there are 3 items > delimited by slashes before testing for "is a date". I write "is a /real/ date" into my notes whenever a meeting is a date. How do you handle such

Re: is a date

2017-10-15 Thread Jim Lambert via use-livecode
Roger wrote: > > put "11/20/2017" is a date > returns true > > put "10" is a date > returns true > > put "raccoon" is a date > returns false > > > WHY is "10" seen as a date? Because it is legitimately a date expressed in seconds? convert 10 to long date = Wednesday, December

Re: is a date

2017-10-15 Thread Mike Kerner via use-livecode
why not have the engine do it for you - use convert to convert the possible date to whatever format you're expecting. If it the answer isn't the same, then you don't have a date. On Sun, Oct 15, 2017 at 7:05 PM, J. Landman Gay via use-livecode < use-livecode@lists.runrev.com> wrote: > Yeah.

Re: is a date

2017-10-15 Thread J. Landman Gay via use-livecode
Yeah. Unless you require a year or something, that'd work. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On October 15, 2017 4:23:20 PM Alex Tweedly via use-livecode wrote:

Re: is a date

2017-10-15 Thread Alex Tweedly via use-livecode
Or   x is a date and x is not an integer  ? -- Alex. On 15/10/2017 21:37, J. Landman Gay via use-livecode wrote: You know, after all the dicussion here, I'm not sure any of the options are better than "x is a date". The one exception may be that any integer is considered a date. To get

Re: is a date

2017-10-15 Thread J. Landman Gay via use-livecode
You know, after all the dicussion here, I'm not sure any of the options are better than "x is a date". The one exception may be that any integer is considered a date. To get around that we could just check that there are 3 items delimited by slashes before testing for "is a date". --

Re: is a date

2017-10-15 Thread Yves COPPE via use-livecode
Hi, Does such a text « 99/99/00 » exist ? You can also always say that it is possible that « 15/10/17 » is not a date in a certain context Now seriously if the function returns a valid date, you can test afterwards the result to see if it can be something else than a date. Now i’m not enough

Re: is a date

2017-10-15 Thread J. Landman Gay via use-livecode
On 10/15/17 1:57 PM, Mark Wieder via use-livecode wrote: On 10/15/2017 11:44 AM, J. Landman Gay via use-livecode wrote: On 10/15/17 5:10 AM, Yves COPPE via use-livecode wrote: I hope this works for any date format ... if

Re: is a date

2017-10-15 Thread Mark Wieder via use-livecode
On 10/15/2017 11:44 AM, J. Landman Gay via use-livecode wrote: On 10/15/17 5:10 AM, Yves COPPE via use-livecode wrote: I hope this works for any date format ... if matchtext(textToSearch,"(\d{1,2})/(\d{1,2})/(\d{2,4})",theDay,TheMonth,TheYear) is true then Yes, it seems to work with any

Re: is a date

2017-10-15 Thread J. Landman Gay via use-livecode
On 10/15/17 5:10 AM, Yves COPPE via use-livecode wrote: I hope this works for any date format ... if matchtext(textToSearch,"(\d{1,2})/(\d{1,2})/(\d{2,4})",theDay,TheMonth,TheYear) is true then Yes, it seems to work with any numeric date now. I also like Ken Ray's solution which lets the

Re: is a date

2017-10-15 Thread Yves COPPE via use-livecode
Hi, I hope this works for any date format on mouseUp ask "Give a date" if it is empty then exit to top answer IsDate(it) end mouseUp function IsDate textToSearch local theDay, TheMonth, TheYear put empty into tresult if

Re: is a date

2017-10-14 Thread Michael Doub via use-livecode
What about this from the Master Library from Ken Ray? function isDate pWhat    /* isDate Date    Syntax:    isDate (pWhat)    Examples:    isDate("10/10/2001")    Description:    Determines if the container passed to it in contains a valid date.    Returns true or false.    Source:    Ken

Re: is a date

2017-10-14 Thread J. Landman Gay via use-livecode
On 10/14/17 2:14 PM, Yves COPPE via use-livecode wrote: Try this function CheckDate pDateToCheck return matchText(pDateToCheck,"([1-9]|[12][0-9]|3[01])/(0[1-9]|1[0-2])/([0-9][0-9][0-9][0-9])") end CheckDate Promising, but fails with dates like "1/1/19". -- Jacqueline Landman Gay |

Re: is a date

2017-10-14 Thread Yves COPPE via use-livecode
Hi, Try this function CheckDate pDateToCheck return matchText(pDateToCheck,"([1-9]|[12][0-9]|3[01])/(0[1-9]|1[0-2])/([0-9][0-9][0-9][0-9])") end CheckDate answer CheckDate(tDate) > Le 14 oct. 2017 à 19:27, Roger Eller via use-livecode > a écrit : > >

Re: is a date

2017-10-14 Thread Roger Eller via use-livecode
That's what I suspected. So to build a slightly better trap, I am doing this: if tDate is a date and length(tDate) > 5 and tDate contains "/" then put "true" else put "false" end if I am sure there is probably a standard way to catch all possible date formats (excluding "the seconds"),

Re: is a date

2017-10-14 Thread Klaus major-k via use-livecode
Hi Roger, > Am 14.10.2017 um 18:30 schrieb Roger Eller via use-livecode > : > > put "11/20/2017" is a date > returns true > > put "10" is a date > returns true > > put "raccoon" is a date > returns false > > > WHY is "10" seen as a date? looks

Re: Retrieve the date from an external source.

2016-11-29 Thread hh
Just to round up this fine solution, could also be used for LC server: I searched for ntp handlers and found this nifty stack http://lists.runrev.com/pipermail/use-livecode/2011-August/160813.html ___ use-livecode mailing list

Re: Retrieve the date from an external source.

2016-11-29 Thread Tore Nilsen
Brilliant! Now I have what I need to push on! Thank you. Tore > 29. nov. 2016 kl. 16.50 skrev Matthias Rebbe : > > The script should be as follows > > put the system date > ?> > > You need to declare the beginning of the script with > and the end of the script with

Re: Retrieve the date from an external source.

2016-11-29 Thread Matthias Rebbe
The script should be as follows You need to declare the beginning of the script with > Am 12.01.2017 um 16:26 schrieb Tore Nilsen : > > Thank you for your quick response. And this is where my lack of experience > with working with lc-scripts and servers shines through.

Re: Retrieve the date from an external source.

2016-11-29 Thread Tore Nilsen
Thank you for your quick response. And this is where my lack of experience with working with lc-scripts and servers shines through. Although I have an account with LiveCode, I do not know how to access lc-server via this account. When I try this I only get the command in return, not the date.

Re: Retrieve the date from an external source.

2016-11-29 Thread Matthias Rebbe
Hi tore, i am using Livecode Server for such tasks. To get the correct date in an LC app i use put URL “http://yourserver.com/whatsthetime.lc” into tCurrentDate where yourserver.com is of course my server and whatsthetime.lc contains the following put the short system time or put the

Re: Likely arrival date for the "Full cross platform audio recording" part of "Infinite LiveCode"

2016-09-23 Thread Dave Kilroy
Thanks Peter Richmond we shall see what we shall see - but at the moment I’m full of hopeful expectation :) > Hi Dave, > > The language dev team are currently actively working on Infinite > LiveCode, and you'll see bits and pieces of it appearing in forthcoming > DP releases, but I don't

Re: Likely arrival date for the "Full cross platform audio recording" part of "Infinite LiveCode"

2016-09-23 Thread Richmond
This is almost as old a chestnut as *audio export*. Richmond. On 23.09.2016 14:36, Dave Kilroy wrote: Hi - anyone got any news / heard any rumours about a landing data for full cross platform audio recording? I’m particularly interested in delivering this for iOS/Android - I know I could

Re: Likely arrival date for the "Full cross platform audio recording" part of "Infinite LiveCode"

2016-09-23 Thread Peter TB Brett
On 23/09/2016 12:36, Dave Kilroy wrote: Hi - anyone got any news / heard any rumours about a landing data for full cross platform audio recording? I’m particularly interested in delivering this for iOS/Android - I know I could use mergAV (and in theory mergAndroid) but would prefer to use a

Re: Get Modification Date of a Single File

2015-08-15 Thread Kay C Lan
On Wed, Aug 12, 2015 at 10:17 AM, Brahmanathaswami bra...@hindu.org wrote: can we check the modification date of a single file? use case: mobile; get date of local file resource; ping LC server check on mod date of the same resource, if latter is younger, then fetch it Sorry, can't help

Re: Get Modification Date of a Single File

2015-08-12 Thread Brahmanathaswami
JB wrote: I don’t have a mobile but on the older versions for desktops you use Files command. The detailed files form returns a list of files, one file per line. Each line contains the following attributes, separated by commas: * The file's name, URL-encoded * The file's size

Re: Get Modification Date of a Single File

2015-08-12 Thread JB
On a mac using Xcode you would use the NFS File Manager which is a part of Foundation. Livecode has imported Foundation but I am not sure if you can acces things like that yet. John Balgenorth On Aug 12, 2015, at 7:28 AM, Brahmanathaswami bra...@hindu.org wrote: JB wrote: I don’t have a

Re: Get Modification Date of a Single File

2015-08-12 Thread Richard Gaskin
Brahmanathaswami wrote: JB wrote: I don’t have a mobile but on the older versions for desktops you use Files command. The detailed files form returns a list of files, one file per line. Each line contains the following attributes, separated by commas: * The file's name, URL-encoded

Re: Get Modification Date of a Single File

2015-08-11 Thread JB
I don’t have a mobile but on the older versions for desktops you use Files command. The detailed files form returns a list of files, one file per line. Each line contains the following attributes, separated by commas: * The file's name, URL-encoded * The file's size in bytes (on

Re: ISO 8601 date to seconds

2015-02-05 Thread Bob Sneidar
It’s my understanding that sqLite accepts any value in any field type, whereas mySQL will toss an error and reject the SQL statement. Correct me if I am wrong, it’s happened before. Bob S On Jan 31, 2015, at 12:44 , Peter Haworth p...@lcsql.com wrote: On Sat, Jan 31, 2015 at 11:41 AM,

Re: ISO 8601 date to seconds

2015-01-31 Thread Brahmanathaswami
FYI: those interested in this date/time enhancement can add their thoughts here: http://quality.runrev.com/show_bug.cgi?id=4636 Bob Sneidar wrote: Sorry about the extra lines in the last post. Not sure what caused that. Here is the formatDate() function as well. Bob S function formatDate

Re: ISO 8601 date to seconds

2015-01-31 Thread Peter Haworth
On Sat, Jan 31, 2015 at 11:41 AM, Brahmanathaswami bra...@hindu.org wrote: FYI: those interested in this date/time enhancement can add their thoughts here: http://quality.runrev.com/show_bug.cgi?id=4636 Just added one minor note. The separator between date and time can be the letter T as

Re: ISO 8601 date to seconds

2015-01-29 Thread Bob Sneidar
Sorry about the extra lines in the last post. Not sure what caused that. Here is the formatDate() function as well. Bob S function formatDate theDate, theFormat /* Accepts any valid date for the first parameter. If not a valid date, it simply returns what was passed. Second parameter

Re: ISO 8601 date to seconds

2015-01-29 Thread Bob Sneidar
Not that this solves your particular problem but some might be interested in this function. I will see if I can include this scenario in my function at some point. Bob S function formatTime theTime, theFormat /* accepts any valid time and returns the form of the time specified in the

Re: ISO 8601 date to seconds

2015-01-28 Thread J. Landman Gay
On 1/28/2015 8:12 PM, Brahmanathaswami wrote: I have to deal with a lot date/time based algorithms on CentoOS/Word Press (and other similar frameworks) where the Date is usually output liked this, with no timezone code 2000-02-17T22:13:21-05 As anyone written a script to convert this to

Re: ISO 8601 date to seconds

2015-01-28 Thread Geoff Canyon
On Wed, Jan 28, 2015 at 8:12 PM, Brahmanathaswami bra...@hindu.org wrote: 2000-02-17T22:13:21-05 As anyone written a script to convert this to seconds? If the positioning is fixed (as is implied by the leading 0s) then I think this will work: function S D put format(%s/%s/%s %s,char 6 to

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 bonnm...@gmail.com To: How to use LiveCode use-livecode@lists.runrev.com Subject: Re: Getting

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. On

Re: Getting the Date and Time From a Remote Computer

2012-01-15 Thread stephen barncard
not too hard if you write a small app to live on the remote mac. Check out sockets in the dictionary and download Chatrev to see how they're used. http://bjoernke.com/index.irev?target=chatrev On 15 January 2012 09:20, Gregory Lypny gregory.ly...@videotron.ca wrote: Hello everyone, Is there

Re: Getting the Date and Time From a Remote Computer

2012-01-15 Thread Mike Bonner
Had one more though in the same vein. I think Andre has a stack that is a basic http server. It would probably be easy to modify it so that the server itself could return your time/date info as well as any other system info you wanted to be able to get at remotely. And since it does its thing

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

Re: Convert Excel date

2011-12-16 Thread Ludovic Thébault
Thanks for your help ! ___ 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

Re: Convert Excel date

2011-12-16 Thread Peter M. Brigham, MD
Simpler is this: put 1/01/1900 into d convert d to dateitems add 40892 to item 3 of d convert d to short date put d -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig On Dec 15, 2011, at 10:17 PM, dunb...@aol.com wrote: The following is very verbose. I just want you

Re: Convert Excel date

2011-12-15 Thread Bob Sneidar
Search the archives. I think Sarah wrote a julian date converter, but the problem is that the Julian date can mean several things depending on the source. Can you have Excel display the date as international format? Otherwise, I bet there is an Applescript you can use if you are doing this on a

Re: Convert Excel date

2011-12-15 Thread Curry Kenworthy
Dates are displayed in numbers. (1/01/1900 = 1 so today = 40892) Is there a script to convert it in a real date with livecode ? I'm working on an Excel importer library, so I've been doing dates as well. Date conversion and Excel-style date/number formatting options are needed anyway behind

Re: Convert Excel date

2011-12-15 Thread dunbarx
The following is very verbose. I just want you to be able to follow one possible method step by step. Read up on all the commands in the dictionary. Put a breakpoint near the beginning. on mouseup convert the date to seconds put 40892 , it into baseLine ask Enter excel date put it -

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 b...@twft.com To: How to use LiveCode use-livecode@lists.runrev.com Subject: Re: Grabbing

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

2011-08-17 Thread Andre Garzia
head on 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 b...@twft.com To: How to use LiveCode use-livecode@lists.runrev.com Subject: Re: Grabbing the Date and Time

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 b...@twft.com To: How to use LiveCode use-livecode@lists.runrev.com Subject: Re: Grabbing the Date and Time From a Time Server on the Internet Message

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, Good

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 H2*, 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-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 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 peoplehttp://www.nist.gov/pml/div688/grp40/its.cfm http://www.nist.gov/pml/div688/grp40/its.cfm On 15 August 2011 11:57, stephen barncard

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

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

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
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 BR*UTC* replace BR with empty in theResult put word 1 to 3 of theResult into

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

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

2011-08-15 Thread Gregory Lypny
Date: Mon, 15 Aug 2011 10:25:06 -0700 From: Bob Sneidar b...@twft.com To: How to use LiveCode use-livecode@lists.runrev.com 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: text/plain

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

2011-08-15 Thread Gregory Lypny
LiveCode use-livecode@lists.runrev.com Subject: Re: Grabbing the Date and Time From a Time Server on the Internet Message-ID: CAFmQfH+BdsdJb3Dmzz3TbmTm=ete4mdrxjyykx3w0xug0bx...@mail.gmail.com Content-Type: text/plain; charset=UTF-8 Bob, I don't see a ton of html at http

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 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 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 http://www.mollysrevenge.com On Mon, Aug 15, 2011 at 3:19 PM, Bob Sneidar b...@twft.com wrote: I may have sent you a version that was bugged.

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
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 http://www.mollysrevenge.com On Mon, Aug 15, 2011 at 5:04 PM, Bob Sneidar b...@twft.com wrote: The

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

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 distributed to

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 of my

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 mwie...@ahsoftware.net wrote: Peter- Saturday, August 13, 2011, 2:03:05 PM, you wrote: I sent this message a couple days

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