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] Time Format

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Time Format
 Login/Join
 
Member
posted
How do I show my time stamp as human time like 2:00 PM rather than the default &TOD which displays 14:00:00.

Thanks

This message has been edited. Last edited by: FP Mod Chuck,


8.2
 
Posts: 18 | Registered: March 23, 2018Report This Post
Expert
posted Hide Post
raff, is the time stamp a column from a table or is it a Dialogue Manager variable?

By the way, in my humble opinion, 14:00:00 is very humanly readable.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Virtuoso
posted Hide Post
 
DEFINE FILE CAR
CURRTIME/HHIA WITH COUNTRY = DT_CURRENT_TIME(SECOND);
END
TABLE FILE CAR
BY CURRTIME

END 


WebFOCUS 8206, Unix, Windows
 
Posts: 1853 | Location: New York City | Registered: December 30, 2015Report This Post
Member
posted Hide Post
its the dialogue manager with the query and canvas pane. I want to display 2:00 PM on active report and html and xlsx outputs.

IMO, I never went to a movie at fourteen hundred or met a friend at 14:00:00...usually simply " two o'clock PM" Smiler


8.2
 
Posts: 18 | Registered: March 23, 2018Report This Post
Expert
posted Hide Post
If you need the current time:

-SET &CURR_TIME = FPRINT(HGETC(8, 'HYYMDS'), 'HHIA', 'A20');


To manipulate time with date-time functions you need a date-time value...

IMO, I never sent a friend a WebFOCUS report Smiler


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Member
posted Hide Post
Paste into the header footer when in info assist?

Live preview does not display "2:00 PM"


8.2
 
Posts: 18 | Registered: March 23, 2018Report This Post
Virtuoso
posted Hide Post
DEFINE FILE CAR
CURRTIME/HHIA WITH COUNTRY = DT_CURRENT_TIME(SECOND);
END
TABLE FILE CAR
BY COUNTRY SUBHEAD
"TIME: <CURRTIME "

WHERE COUNTRY EQ 'ENGLAND';
END   


WebFOCUS 8206, Unix, Windows
 
Posts: 1853 | Location: New York City | Registered: December 30, 2015Report This Post
Expert
posted Hide Post
-SET &CURR_DATE = &YYMD;
-SET &CURR_TIME = EDIT(HHMMSS('A8'),'99$99$99');

-SET &CURR_HHIA = HCNVRT( HINPUT(14, '&CURR_DATE.EVAL&CURR_TIME.EVAL' , 8, 'HYYMDS') , '(HHIA)', 8, 'A8');

Though you get a leading zero...


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Virtuoso
posted Hide Post
If InfoAssist is a requirement, then you need to have a field not an &variable to drag and drop into the heading. That's why I suggested using the DEFINE with DT_CURRENT_TIME.


WebFOCUS 8206, Unix, Windows
 
Posts: 1853 | Location: New York City | Registered: December 30, 2015Report This Post
Master
posted Hide Post
You can also try this.
-* File runtime.fex
-SET &RUNTM=EDIT(HHMMSS('A8'),'99999');
-SET &RUNHR=LJUST(2,EDIT(&RUNTM,'99'),'A2');
-SET &RUNMI=EDIT(&RUNTM,'$$$99');
-SET &M=IF &RUNHR GE 12 THEN 'pm' ELSE 'am';
-SET &PHR=IF &RUNHR GT 12 THEN &RUNHR-12 ELSE FPRINT(&RUNHR,'I2S','A2');
-SET &P_RUNTM=&PHR || ':' | &RUNMI | ' ' | &M;
-SET &P_RUNTM=LJUST(8,&P_RUNTM,'A8');


I use this with a -include in almost all reports.
[code]
-INCLUDE RUNTIME
-SET &CURRDTTM=&DATEMtrDYY || (' at ' | &P_RUNTM);
-TYPE &CURRDTTM
[code]

April 10, 2018 at 7:32 am


In FOCUS since 1985. Prod WF 8.0.08 (z90/Suse Linux) DB (Oracle 11g), Self Serv, Report Caster, WebServer Intel/Linux.
 
Posts: 975 | Location: Oklahoma City | Registered: October 27, 2006Report This Post
Expert
posted Hide Post
If it's for InfoAssist - a GUI tool, please indicate that, as I cannot provide support for GUI tools.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report 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] Time Format

Copyright © 1996-2020 Information Builders