Losing track of time

Dar Scott dsc at swcp.com
Mon Aug 11 18:21:01 EDT 2003


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

>> 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
>>
>
> Nop. 'It' contains dateitems (yyyy,mm,dd,hh,mm,ss,w) not seconds at 
> this point.

I was obtuse.  I meant replace all of above lines (an it in seconds to 
it in seconds transformation) to the single line.

Dar Scott




More information about the use-livecode mailing list