That's what I thought, maybe a new tag could be created for the next version.
 
my work around:
 

<@ASSIGN NAME="vdays" VALUE="<@CALC EXPR='floor(<@VAR vtrackdaycnt[<@currow>,5] SCOPE=Request>/86400)'>" SCOPE="request">

<@IF EXPR="@@request$vdays>0">

    <@ASSIGN NAME="vsecremain" VALUE="<@CALC EXPR='<@VAR vtrackdaycnt[<@currow>,5] SCOPE=Request>-(86400*@@request$vdays)'>" SCOPE="request">

    @@request$vdays days, <@SECSTOTIME SECS="<@VAR vsecremain SCOPE=Request>" >

<@else>

    <@SECSTOTIME SECS="<@VAR vtrackdaycnt[<@currow>,5] SCOPE=Request>" ><br>

</@IF>

Ted

From: Dale Graham [mailto:[EMAIL PROTECTED]
Sent: Friday, January 20, 2006 1:50 PM
To: [email protected]
Subject: Re: Witango-Talk: <@SECSTOTIME> tag

For time, it is <@secstotime  >. But the amount of time has to be less than 86400  (e.g., something less than 24 hrs)

For info on days, hrs, mins, you would need <@secstots > to get the day - and have that in the correct format, too.

To get elapsed time, I believe you have to use a calculation, get the seconds elapsed (e.g., between 1 pm yesterday and 3 pm today), and then do MORE calculations to get elapsed time in whatever increments. Someone on the list may be able to speak to this sort of calculation. Witango does a days elapsed calculation <@datediff >, but not an exact time elapsed calculation, as far as I know.

On Jan 20, 2006, at 1:11 PM, Ted Wolfley wrote:

the <@secstots> tag references a timestamp from January 1, 1970.  I want the days, hours,minutes and seconds that have elasped from a total number of seconds.
 
Ted


From: Dale Graham [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 20, 2006 12:38 PM
To: [email protected]
Subject: Re: Witango-Talk: <@SECSTOTIME> tag

Wrong metatag

<@secstots >
not
<@secstotime >

On Jan 20, 2006, at 11:49 AM, Ted Wolfley wrote:

Hi,
 
I get a "Invalid parameter !" error when I use <@SECSTOTIME SECS="105241">.  Is this because the number of seconds is over 1 day in length?
 
If this is so, I should divide the number of seconds by the number of seconds in a day and use the tag with the remainder?

 
Ted Wolfley
Database/Internet Programmer
The Ogden Group of Rochester
5637  West Henrietta Road
West Henrietta, NY 14586
phone: (585) 321 1060 x23
fax: (585) 321 0043

[EMAIL PROTECTED]

 
________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

Reply via email to