Beyond POSIX time

Richard Gaskin ambassador at fourthworld.com
Fri Jan 8 18:06:20 EST 2016


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 if I specify the year exactly:
> 1/1/1969. Mac OS X Yosemite. What do you get?

-31507200 on Linux, and I believe the same on Windows (though I haven't 
tested there in a while).

Mark Waddingham flagged this a while back, but I was hoping there may 
have been some enhancement since then:
http://quality.livecode.com/show_bug.cgi?id=4941

-- 
  Richard Gaskin
  Fourth World Systems
  Software Design and Development for the Desktop, Mobile, and the Web
  ____________________________________________________________________
  Ambassador at FourthWorld.com                http://www.FourthWorld.com




More information about the use-livecode mailing list