| How to calculate elapsed time? [message #1059000] |
Thu, 16 May 2013 03:41  |
sonam mantri Messages: 4 Registered: May 2013 |
Junior Member |
|
|
I have tickets with submit date and closed date.
I wish to calculate the total time elapsed between submission and closure of the ticket.
The entries in those columns are in following format:
May 10, 2013 6:15 PM
Also some tickets are not closed so there entries are blank. Also let me know how to calculate for the same.
i want the elapsed time column to appear as a separate column in report.
please help...
and thanks in advance...
|
|
|
|
|
| Re: How to calculate elapsed time? [message #1059165 is a reply to message #1059164] |
Fri, 17 May 2013 02:05  |
|
If you took the seconds from above, you could easily create this format with something like the following as your expression for you type string computed column:
remainingSeconds = BirtDateTime.diffSecond(date1,date2);
Hours = Math.floor(remainingSeconds/3600);
remainingSeconds = remainingSeconds%3600;
Minutes = Math.floor(remainingSeconds/60);
remainingSeconds = remainingSeconds%60;
colOutput = Hours + ":" + Minutes + ":" + remainingSeconds;
colOutput;
Regards,
Michael Williams
BIRT Exchange
Michael's BIRT Blog
|
|
|
Powered by
FUDForum. Page generated in 0.01549 seconds