Age calculation script

Jim Ault JimAultWins at yahoo.com
Sat Sep 9 14:21:19 CDT 2006


Ouch!
I can get the date list to go back 101 years from today without a problem.
Wonder why the difference in dateItems between
[2.7.2 OSX 10.4.9]   <>  [Win 2000 2.6.1   or   Win 2000 2.7.3]

Jim Ault
Las Vegas


On 9/9/06 12:09 PM, "Roger.E.Eller at sealedair.com"
<Roger.E.Eller at sealedair.com> wrote:

>>I tried it in 2.6.1 and
>>2.7.3. I am using Rev in Windows 2000. I even tried changing the
>>centuryCutoff... same results.

>> Try this loop, then look at the msgbox, or copy paste to another app
>> 
>> on showDateList
>>  put the short date into noww
>>  convert noww to seconds
>>    put 24*60*60 into hr24
>>    repeat with x = (35*365) to (100*365)
>>     put noww - (x*hr24) into past
>>     convert past to dateitems
>>     put past & cr after newList
>>    end repeat
>>  put newList into msg
>> end showDateList
> 
> -------------------- Just a short exerpt of the result ----
> 1970,1,6,1,0,0,3
> 1970,1,5,1,0,0,2
> 1970,1,4,1,0,0,1
> 1970,1,3,1,0,0,7
> 1970,1,2,1,0,0,6
> 1970,1,1,1,0,0,5
> -64800
> -151200
> -237600
> -324000
> -410400
> -496800
> 
> Roger Eller <roger.e.eller at sealedair.com>





More information about the use-livecode mailing list