Will this help?  I copied this from another post some time in the 
past.  Don't remember the author of it

function secondsLeftOnBar_func()
{
    Time = Now( 4 );
    Seconds = int( Time % 100 );
    Minutes = int( Time / 100 % 100 );
    Hours = int( Time / 10000 % 100 );
    SecondNum = int( Hours * 60 * 60 + Minutes * 60 + Seconds );
    TimeFrame = Interval();
    Newperiod = SecondNum % TimeFrame == 0;
    SecsLeft = SecondNum - int( SecondNum / TimeFrame ) * TimeFrame;
    SecsToGo = TimeFrame - SecsLeft;
    return SecsToGo;
}

Then, to add to the title bar add this line

Title = Title + "\n\\c07 Time left in the bar " + WriteVal
(SecsToGo/60 ,2.2);




--- In [email protected], "Pete" <[EMAIL PROTECTED]> wrote:
>
> Thanks for the tip. I checked the UKB and didn't find anything that
> does exactly what I'm looking for. What I would like is to see the
> current system time expressed in hh:mm:ss and I would like the 
display
> to be active, meaning as seconds tick away the display would show 
each
> second passing along. The purpose would be for intraday use so I can
> see as a bar is about to be completed and moved to the next bar.
> Thanks.
> 
>   Pete  :-)
>


Reply via email to