Losing track of time

Dar Scott dsc at swcp.com
Mon Aug 11 17:07:00 EDT 2003


On Monday, August 11, 2003, at 02:04 PM, Robert Brenstein wrote:

> convert it to dateitems
> add 1 to item 5 of it # up hour to next
> if item 5 of it is 24 then # account for crossing midnight
>   put zero into item 5 of it
>   add 1 to item 4 of it
>   ## similar checks for month and year overflow here
> end if
> put zero into item 6 of it # zero out minutes
> convert it to seconds

get (round(it/3600) + 1)*3600

Would this work?

Dar Scott


************************************************************************ 
****
   Dar Scott Consulting    http://www.swcp.com/dsc/    Programming  
Services
************************************************************************ 
****




More information about the use-livecode mailing list