Re: Convert date to seconds

2013-07-18 Thread Thomas McGrath III
That's weird. I still get the 16th. Can anyone else confirm the 15th? (not doubting you Dar) I might have to change this then… Tom -- Tom McGrath III http://lazyriver.on-rev.com mcgra...@mac.com On Jul 18, 2013, at 12:39 AM, Dar Scott d...@swcp.com wrote: On Jul 17, 2013, at 7:03 PM,

Re: Convert date to seconds

2013-07-18 Thread Klaus major-k
Hi Tom, Am 18.07.2013 um 17:56 schrieb Thomas McGrath III mcgra...@mac.com: That's weird. I still get the 16th. Can anyone else confirm the 15th? (not doubting you Dar) I might have to change this then… I think you can simply add two hours (2*600) to the resulting seconds and are safe :-)

Re: Convert date to seconds

2013-07-18 Thread Dar Scott
I think it is the UTC seconds thing. I think that changing a date to seconds will get midnight of the day for the current time zone. Somebody in an more westerly timezone might see those seconds and the date will be earlier. If it is on only one computer and the timezone will not change,

Re: Convert date to seconds

2013-07-18 Thread Andrew Kluthe
it gets midnight UTC, livecode changing the date FROM the time zone independent seconds gives you time zone differences. On Thu, Jul 18, 2013 at 12:48 PM, Dar Scott d...@swcp.com wrote: I think it is the UTC seconds thing. I think that changing a date to seconds will get midnight of the day

Re: Convert date to seconds

2013-07-18 Thread Andrew Kluthe
disregard, after looking more closely at his email dar is correct completely. On Thu, Jul 18, 2013 at 1:01 PM, Andrew Kluthe and...@ctech.me wrote: it gets midnight UTC, livecode changing the date FROM the time zone independent seconds gives you time zone differences. On Thu, Jul 18, 2013

Re: Convert date to seconds

2013-07-18 Thread Dar Scott
We might be saying the same thing, but I'm not sure. on mouseUp get the short date convert it to seconds put it tab it/3600 mod 24 end mouseUp gives me this: 1374127200 6 I'm in MDT (Rocky Mountains), somebody in California might take those same seconds and convert to a short

Convert date to seconds

2013-07-17 Thread Thomas McGrath III
I am converting the short date (08/16/13) to seconds and I get 1376625600 My question is Is the converted seconds always that many digits when converted from that type of date? The reason I ask is I am making filenames by merging a name like Thomas or Tom with the date converted to seconds as

Re: Convert date to seconds

2013-07-17 Thread Mike Bonner
Since its the number of seconds since.. I think 1970, there will always be that many digits at least until the odometer rolls up to 99 + 1. Plenty of breathing space there. On Wed, Jul 17, 2013 at 7:03 PM, Thomas McGrath III mcgra...@mac.comwrote: I am converting the short date

Re: Convert date to seconds

2013-07-17 Thread Dar Scott
Will the create of file names be in the same time zone as the reader of file names? On Jul 17, 2013, at 7:03 PM, Thomas McGrath III wrote: I am converting the short date (08/16/13) to seconds and I get 1376625600 My question is Is the converted seconds always that many digits when

Re: Convert date to seconds

2013-07-17 Thread dunbarx
LiveCode use-livecode@lists.runrev.com Sent: Wed, Jul 17, 2013 9:21 pm Subject: Re: Convert date to seconds Will the create of file names be in the same time zone as the reader of file names? On Jul 17, 2013, at 7:03 PM, Thomas McGrath III wrote: I am converting the short date (08/16/13

Re: Convert date to seconds

2013-07-17 Thread Mike Bonner
of the seconds, and if it is eleven then modify your chunk stuff. Craig Newman -Original Message- From: Dar Scott d...@swcp.com To: How to use LiveCode use-livecode@lists.runrev.com Sent: Wed, Jul 17, 2013 9:21 pm Subject: Re: Convert date to seconds Will the create of file names

Re: Convert date to seconds

2013-07-17 Thread Mark Wieder
Tom- Wednesday, July 17, 2013, 6:03:26 PM, you wrote: The reason I ask is I am making filenames by merging a name like Thomas or Tom with the date converted to seconds as in Thomas1376625600.txt or Tom1376625600.txt Regex to the rescue: get matchtext(tFileName, ([A-Za-z]+)([0-9]+), tName,

Re: Convert date to seconds

2013-07-17 Thread Mark Wieder
Mike- Wednesday, July 17, 2013, 6:53:41 PM, you wrote: Could work up a simple regex and use matchtext instead to remove the issue entirely also. Ha! GMTA -- -Mark Wieder mwie...@ahsoftware.net ___ use-livecode mailing list

Re: Convert date to seconds

2013-07-17 Thread Mike Bonner
GMTA? Did that mean I won?!?!?! *cough* On Wed, Jul 17, 2013 at 8:25 PM, Mark Wieder mwie...@ahsoftware.net wrote: Mike- Wednesday, July 17, 2013, 6:53:41 PM, you wrote: Could work up a simple regex and use matchtext instead to remove the issue entirely also. Ha! GMTA -- -Mark