Date bug?

Joe Lewis Wilkins pepetoo at cox.net
Sat Jan 1 23:25:32 CST 2011


Happy New Years, Chipp

I tried a dozen or so dates and they confirmed your findings. Strange. I even changed the short date to the long date and the abbreviated date. What I'd like to know is how did you come across this anomaly. If there is one, there must be more; but which ones. This is potentially dangerous. Hard to be totally confident with LC when something like this occurs. Did you try this with earlier version of Rev?

Joe Lewis Wilkins
Architect & Director of Product Development for GSI
<www.glsysinc.com>







On Jan 1, 2011, at 8:58 PM, Chipp Walters wrote:

> 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



More information about the use-livecode mailing list