Focal Point Banner


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.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Getting a elapsed time serial number into a specific time format

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Getting a elapsed time serial number into a specific time format
 Login/Join
 
Silver Member
posted
I'm working with Dev Studio 7.7.03. I unable to find any documentation on converting a elapsed time field (serial number) in a format like HH:MM:SS. Also, the "HH" fields can be larger than 24 hours. In Excel you have a customized format [h]:mm:ss which does exactly what I need to do but I can't find anything in WebFocus to do such converstion. Please Help!

This message has been edited. Last edited by: Kerry,
 
Posts: 31 | Registered: November 17, 2005Report This Post
Virtuoso
posted Hide Post
Here are some ideas. This code example assumes your elapsed time is in seconds. Dividing the elapsed time by 86400 will give the number of complete elapsed days with function INT. Then using functions HINPUT and HADD in a technique posted earlier by Waz here, the remaining elapsed time can be calculated and presented in hh:mm:ss format. The number of elapsed days does not need to be subtracted from the total elapsed time before calculating the remaining elapsed time because use of format HHIS essentially ignores the passing days. For example, each time 86400 is added to the value of variable &ELPASED in the code below, ELAPSED_DAYS increments by 1, but ELAPSED_TIME does not change in the output.

-SET &ELAPSED = 86398 ;
-*
DEFINE FILE CAR
 ELAPSED_DAYS/I5 WITH COUNTRY = INT(&ELAPSED / 86400);
 NULL_TIME/HHIS WITH COUNTRY  = HINPUT(1,'0',8,'HHIS');
 ELAPSED_TIME/HHIS            = HADD(NULL_TIME,'SECOND',&ELAPSED,8,'HHIS');
END
-*
TABLE FILE CAR
 PRINT ELAPSED_DAYS ELAPSED_TIME
 WHERE RECORDLIMIT EQ 1 ;
END

This message has been edited. Last edited by: Dan Satchell,


WebFOCUS 7.7.05
 
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Getting a elapsed time serial number into a specific time format

Copyright © 1996-2020 Information Builders