As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.
Join the TIBCO Community TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.
From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
Request access to the private WebFOCUS User Group (login required) to network with fellow members.
Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.
I am looking to calculate the time difference between a start and an end time. It works ok, but not so much when the times expand over midnight (for example, my start time is 11:30pm, and end time is 12:15am the next day), my length should be 45 minutes but instead is a negative number. Is there a way I can account for this?
I only have the 2 time stamps and did the following define:
Length/D12.2 = HDIFF(FACT_OR.FACT_OR.End_time, FACT_OR.FACT_OR.Start_time, 'MINUTE', 'D9');This message has been edited. Last edited by: <Emily McAllister>,
I do have a date field that I did not use, but it would only apply to the start date as that date field shows just the date for the start time, I do not have an "end date" field for the end time
I do not have an "end date" field for the end time
If you don't have the END DATE/TIME how would you know if the end was the next day at 12:30AM or next month? Are there assumptions you can make about how long the difference can be?
WebFOCUS 8206, Unix, Windows
Posts: 1853 | Location: New York City | Registered: December 30, 2015
Yes it is safe to assume none of the times would be beyond the next day for example the next month, all the lengths are within 3-4 hours of each other. So pretty much...this is only applying to anything that was in the late 20s of the 24 hour clock for the start time and then the 0 or 1 hours for the end time