Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » calculate duration in BIRT
calculate duration in BIRT [message #539328] Thu, 10 June 2010 12:49 Go to next message
No real name is currently offline No real nameFriend
Messages: 17
Registered: June 2010
Junior Member
Hi,

Thanks for reading.

I'm a BIRT newbie.
Please how can I calculate duration from two data fields in my dataset. the sql duration doesn't seem to be supported in BIRT.
When I try subtraction of one date from the other, I get a NaN, as I try a float datatype.

Thanks for your answer.

Ime
Re: calculate duration in BIRT [message #539351 is a reply to message #539328] Thu, 10 June 2010 14:06 Go to previous messageGo to next message
Richard A. Polunsky is currently offline Richard A. PolunskyFriend
Messages: 212
Registered: July 2009
Location: Houston TX
Senior Member

I would try the BirtDateTime functions, though I usually do this sort of thing on the database side. There are a couple of things you have to consider. One, what database are you using, what is the datatype (DATE, or DATETIME), and what resolution do you want in your duration (raw number of seconds, difference in minutes, days, etcetera).

If you're looking to use (in effect) the SQL-92 INTERVAL data type as your result, someone else will need to help you as I have never needed to use that facility.

Re: calculate duration in BIRT [message #539373 is a reply to message #539351] Thu, 10 June 2010 14:53 Go to previous message
No real name is currently offline No real nameFriend
Messages: 17
Registered: June 2010
Junior Member
Thanks Richard. I was just discussing with a colleague and we decided also to do this on the database side through our service layer...that is add methods to do this and persist through the POJO.

Will be storing the raw number of days as float.

Thanks again. I'm loving this forum Smile

Ime
Previous Topic:Stack Overflow deploying Birt on Websphere 6.1 with Java2 Security
Next Topic:Populating a table column-by-column
Goto Forum:
  


Current Time: Fri Apr 26 18:47:31 GMT 2024

Powered by FUDForum. Page generated in 0.03258 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top