Luke Wigley wrote some not-quite-right lingo

> on stopMovie
> if gTheStartTime = gTimeNow then
> -- simplest case is the same day
> difference = gTimeNow.seconds - gTheStartTime.seconds
> else 
> -- start time was an earlier day.
> daysDifference = (gTimeNow - gTheStartTime)
> --   work out the seconds elapsed to midnight of the current day
> secondsElapsed = daysDifference * (24*60*60) - gTimeNow.seconds
> -- ... then add the seconds elapsed on the current day
> difference = secondsElapsed + gTimeNow.seconds
> end if
> put difference
> end 

should be

  secondsElapsed = daysDifference * float(24*60*60) - gTheStartTime.seconds

Luke

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]

Reply via email to