Date bug?

Jacques Hausser jacques.hausser at unil.ch
Sun Jan 2 03:08:51 CST 2011


Hello,

Here the answer is OK also. Mac OS 10.6.5 too. I guess the culprit is not LC, but what's behind...

Happy New Year

Jacques

Le 2 janv. 2011 à 09:54, André Bisseret a écrit :

> Bonjour Chipp,
> 
> Here, with your script, I get 11/8/10 as expected.
> 
> Mac 10.6.5; liveCode 4.5.2
> 
> Best regards from Grenoble 
> 
> Bonne et heureuse année à tous
> 
> André
> 
> Le 2 janv. 2011 à 05:58, Chipp Walters a écrit :
> 
>> Hey, can anyone try this or tell me why it doesn't work?
>> If I use any other date than 11/07/2010, it generates the next date. But for
>> some reason Nov 7 doesn't work?
>> 
>> on mouseUp
>>  put "11/07/2010" into tDate
>>  answer nextDayDate(tDate)
>> end mouseUp
>> 
>> function nextDayDate pDate
>>  convert pDate to seconds
>> 
>>  put 60*60*24 into tSecondsInDay
>>  add tSecondsInDay to pDate
>>  convert pDate to short date
>>  return pDate
>> end nextDayDate
>> 
>> -- 
>> Chipp Walters
>> CEO, Shafer Walters Group, Inc.
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

******************************************
Prof. Jacques Hausser
Department of Ecology and Evolution
Biophore / Sorge
University of Lausanne
CH 1015 Lausanne
please use my private address:
6 route de Burtigny
CH-1269 Bassins
tel/fax: 	++ 41 22 366 19 40
mobile:	++ 41 79 757 05 24
E-Mail:	jacques.hausser at unil.ch
*******************************************




More information about the use-livecode mailing list