Re: Beyond POSIX time

2016-01-09 Thread Kay C Lan
On Sat, Jan 9, 2016 at 7:21 PM, FlexibleLearning.com < ad...@flexiblelearning.com> wrote: > > If you got a Saturday for 14 October 1066, all good. Otherwise the > algorithm > is not accounting for the 1582 or 1752 calendar changes. > > Yes, often forgotten, as is the particular country you you may

Re: Beyond POSIX time

2016-01-09 Thread Richard Gaskin
dunbarx wrote: > On 1/8/2016 4:53 PM, Richard Gaskin wrote: >> Try this: >> >> on mouseUp >>put "1/1/69" into t >>convert t to secs >>convert t to short date >>put t >> end mouseUp > > I get the date you first put in. Tried several, all the way back > to the battle of Hastings. Al

Re: Beyond POSIX time

2016-01-09 Thread FlexibleLearning.com
> I get the date you first put in. Tried several, all the way back to the battle of > Hastings. All good The negative seconds do the math as well as ordinary > ones. If you got a Saturday for 14 October 1066, all good. Otherwise the algorithm is not accounting for the 1582 or 1752 calendar change

Re: Beyond POSIX time

2016-01-08 Thread dunbarx
-Original Message- From: Richard Gaskin To: How to use LiveCode Sent: Fri, Jan 8, 2016 5:54 pm Subject: Beyond POSIX time Try this: on mouseUp put "1/1/69" into t convert t to secs convert t to short date put t end mouseUp Is there yet a convenient way to handle

Re: Beyond POSIX time

2016-01-08 Thread Mark Wieder
On 01/08/2016 03:06 PM, Richard Gaskin wrote: Mark Waddingham flagged this a while back, *a while* ... 2007 ... rev 2.8.1rc3 -- Mark Wieder ahsoftw...@gmail.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to

Re: Beyond POSIX time

2016-01-08 Thread Matthias Rebbe | M-R-D
Hi, Malte created a date library https://github.com/derbrill/libdate If i remember right it can handle dates below 1970 and above 2036. Matthias > Am 08.01.2016 um 23:53 schrieb Richard Gaskin : > > Try this: > > on mouseUp > put "1/1/69" into t > convert t to secs > convert t to short da

Re: Beyond POSIX time

2016-01-08 Thread Richard Gaskin
J. Landman Gay wrote: On 1/8/2016 4:53 PM, Richard Gaskin wrote: Try this: on mouseUp put "1/1/69" into t convert t to secs convert t to short date put t end mouseUp Is there yet a convenient way to handle conversion of dates prior to 1/1/70? I get 1/1/69. I get the same thing i

Re: Beyond POSIX time

2016-01-08 Thread J. Landman Gay
On 1/8/2016 4:53 PM, Richard Gaskin wrote: Try this: on mouseUp put "1/1/69" into t convert t to secs convert t to short date put t end mouseUp Is there yet a convenient way to handle conversion of dates prior to 1/1/70? I get 1/1/69. I get the same thing if I specify the year ex

Beyond POSIX time

2016-01-08 Thread Richard Gaskin
Try this: on mouseUp put "1/1/69" into t convert t to secs convert t to short date put t end mouseUp Is there yet a convenient way to handle conversion of dates prior to 1/1/70? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the We